RIP的版本1和版本2兼容性问题

在这里插入图片描述
在这里插入图片描述
测试结果如下:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
代码如下:
R1
interface Loopback0
ip address 192.168.1.1 255.255.255.0
interface Serial0/0
ip address 192.168.12.1 255.255.255.0
R2
interface Loopback0
ip address 192.168.2.1 255.255.255.0
interface Serial0/0
ip address 192.168.12.2 255.255.255.0
ip nat outside
interface Serial0/1
ip address 192.168.23.1 255.255.255.0
ip nat inside
interface Serial0/2
ip address 192.168.26.1 255.255.255.0
ip nat inside
router rip rip协议
version 2
network 192.168.2.0
network 192.168.23.0
network 192.168.26.0
default-information originate 下放缺省
no auto-summary
ip route 0.0.0.0 0.0.0.0 192.168.12.1 自己缺省指向R1
access-list 1 permit 192.168.0.0 0.0.255.255
access-list 1 permit 172.16.0.0 0.0.255.255
access-list 1 permit 78.0.0.0 0.255.255.255 抓取流量
ip nat inside source list 1 interface Serial0/0 overload
R3
interface Loopback0
ip address 192.168.3.1 255.255.255.0
interface Serial0/0
ip address 192.168.23.2 255.255.255.0
serial restart-delay 0
interface Serial0/1
ip address 192.168.34.1 255.255.255.0
router rip
version 2
network 0.0.0.0
no auto-summary
R4
interface Loopback0
ip address 192.168.4.1 255.255.255.0
interface Serial0/0
ip address 192.168.34.2 255.255.255.0
interface Serial0/1
ip address 192.168.45.1 255.255.255.0
router rip
version 2
network 0.0.0.0
no auto-summary
R5
interface Loopback0
ip address 192.168.5.1 255.255.255.0
interface Serial0/0
ip address 192.168.45.2 255.255.255.0
interface Serial0/1
ip address 192.168.56.1 255.255.255.0
router rip
version 2
network 0.0.0.0
no auto-summary
R6
interface Loopback0
ip address 192.168.6.1 255.255.255.0
interface Serial0/0
ip address 192.168.56.2 255.255.255.0
interface Serial0/1
ip address 192.168.67.1 255.255.255.0
ip rip send version 1 2
ip rip receive version 1 2
interface Serial0/2
ip address 192.168.26.2 255.255.255.0
router rip
version 2
network 192.168.6.0
network 192.168.26.0
network 192.168.56.0
network 192.168.67.0
no auto-summary
R7
interface Loopback0
ip address 172.16.2.1 255.255.255.0
interface Serial0/0
ip address 192.168.67.2 255.255.255.0
ip rip send version 1 2
ip rip receive version 1 2
serial restart-delay 0
interface Serial0/1
ip address 172.16.3.1 255.255.255.0 secondary
ip address 78.1.1.2 255.255.255.0
router rip
version 1
network 78.0.0.0
network 172.16.0.0
network 192.168.67.0
R8
interface Loopback0
ip address 172.16.1.1 255.255.255.0
interface Serial0/0
ip address 172.16.3.2 255.255.255.0 secondary
ip address 78.1.1.1 255.255.255.0
router rip
version 1
network 172.16.0.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LYDlsj

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值