拓扑
基本配置
一、接口配置
AR1
interface GigabitEthernet0/0/0
ip address 12.1.1.1 255.255.255.0
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
AR2
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 23.1.1.2 255.255.255.0
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
AR3
interface GigabitEthernet0/0/0
ip address 23.1.1.3 255.255.255.0
interface GigabitEthernet0/0/1
ip address 34.1.1.3 255.255.255.0
interface LoopBack0
ip address 3.3.3.3 255.255.255.0
AR4
interface GigabitEthernet0/0/0
ip address 34.1.1.4 255.255.255.0
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
二、RIP配置
AR1
rip 1
network 1.0.0.0
network 12.0.0.0
AR2
rip 1
network 12.0.0.0
network 23.0.0.0
network 2.0.0.0
AR3
rip 1
network 23.0.0.0
network 34.0.0.0
network 3.0.0.0
AR4
rip 1
network 34.0.0.0
network 4.0.0.0
三、实现验证(挑选一个路由器,其他的类似查看)
查看路由表看是否学到路由
查看RIP路由表
四、抓包分析
RIP每30S进行一个路由更新
使用UDP协议,端口为520
协议包解析
V1和V2的区别
V1目的地址为广播地址,V2目的地址为组播地址
RIP的毒化机制
将自身有的路由器跳数设置成最大16