RIP 路由信息协议
1.1 Ping
1.1.1 拓扑
1.1.2 配置
1)按拓扑把接口IP配置好
PC-92的默认路由为192.168.4.208
PC-91的默认路由为192.168.3.207
此时PC-91与PC-92互ping不通
2)两个交换机配置RIP,宣告网段,以208为例:
xNet#configure terminal
xNet(config)#router rip
xNet(config-router)#network 20.1.1.0/24
xNet(config-router)#network 192.168.4.0/24
xNet(config-router)#end
xNet#
1.1.3 结果
1)配置相应RIP后,使用PC-91与PC-92互ping,能够ping通
2)查看RIP路由
208:
207:
1.2 RIPng
1.2.1 拓扑
1.2.2 配置
1)按拓扑把接口IP配置好
PC-92的默认路由为2003::208
PC-91的默认路由为2002::207
此时PC-91与PC-92互ping不通
2)配置好所有接口IPv6地址,208为例
xNet#con t
xNet(config)#interface ge1
xNet(config-if)#ipv6 address 2001::208/64
xNet(config-if)#exit
xNet(config)#interface ge48
xNet(config-if)#ipv6 address 2003::208/64
xNet(config-if)#end
xNet#
3)两个交换机配置RIPng,分别宣告ge1和ge48的网段,以208为例:
xNet#configure terminal
xNet(config)#router ipv6 rip
xNet(config-router)#exit
xNet(config)#interface ge1
xNet(config-if)#ipv6 router rip
xNet(config-if)#exit
xNet(config)#interface ge48
xNet(config-if)#ipv6 router rip
xNet(config-if)#end
xNet#
同样配置207号机
1.2.3 结果
1)配置相应RIPng后,使用PC-91与PC-92互ping,能够ping通
2)查看RIPng路由