1. 程式人生 > >9-高級路由:RIP更新源檢測

9-高級路由:RIP更新源檢測

com -i sub ida 相互 onf ges blog shutdown

一、實驗拓撲:
技術分享圖片
二、命令部署:
ESW1(config)#int range f0/0 - 2
ESW1(config-if-range)#no shutdown

1、實驗要求3部署:
R1(config)#router rip
R1(config-router)#no validate-update-source

R2(config)#router rip
R2(config-router)#no validate-update-source

R3(config)#int f0/0
R3(config-if)#ip add 100.1.1.3 255.255.255.0 secondary
R3(config)#router rip

R3(config-router)#no validate-update-source

2、實驗要求4部署:
R3(config)#int f0/0
R3(config-if)#no ip add 100.1.1.3 255.255.255.0 secondary

三、驗證:
1、R1、R2、R3之間運行RIP協議後,是否能學習到對方的路由條目?

R1#show ip route rip
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 100.1.1.2, 00:00:09, FastEthernet0/0

R2#show ip route rip
1.0.0.0/24 is subnetted, 1 subnets

R 1.1.1.0 [120/1] via 100.1.1.1, 00:00:00, FastEthernet0/0

R3#show ip route rip
結論:R1和R2相互有對方的路由條目,R3沒有。
因為R1、R2通過100.1.1.0網段發出更新,R3是通過200.1.1.0網段發出更新。

2、R3部署100.1.1.0的備用地址,查看R1、R2和R3是否能學到對方路由?

R1#show ip route rip
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 100.1.1.2, 00:00:25, FastEthernet0/0

R2#show ip route rip
1.0.0.0/24 is subnetted, 1 subnets

R 1.1.1.0 [120/1] via 100.1.1.1, 00:00:12, FastEthernet0/0

R3#show ip route rip
1.0.0.0/24 is subnetted, 1 subnets
R 1.1.1.0 [120/1] via 100.1.1.1, 00:00:20, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 100.1.1.2, 00:00:20, FastEthernet0/0

結論:R3可以學到R1、R2路由條目,R1、R2學不到R3路由;
因為R3部署備用地址,可以接收同網段路由。
3、R1、R2、R3關閉更新源檢測,查看R1、R2和R3是否學到對方路由?
R1#show ip route rip
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 100.1.1.2, 00:00:02, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
R 3.3.3.0 [120/1] via 200.1.1.3, 00:00:13

R2#show ip route rip
1.0.0.0/24 is subnetted, 1 subnets
R 1.1.1.0 [120/1] via 100.1.1.1, 00:00:15, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
R 3.3.3.0 [120/1] via 200.1.1.3, 00:00:02

R3#show ip route rip
1.0.0.0/24 is subnetted, 1 subnets
R 1.1.1.0 [120/1] via 100.1.1.1, 00:06:15, FastEthernet0/0
[120/1] via 100.1.1.1, 00:00:13
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 100.1.1.2, 00:06:24, FastEthernet0/0
[120/1] via 100.1.1.2, 00:00:14

結論:R1、R2和R3都可以學到對方的路由條目。

4、R1、R2和R3有對方路由後,是否可以Ping通背後的環回口?

R2#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R3#ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

技術分享圖片

9-高級路由:RIP更新源檢測