测试结果如下:
代码如下:
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
RIP的版本1和版本2兼容性问题
最新推荐文章于 2022-10-17 09:58:08 发布