EIGRP綜合實驗2
拓撲圖:
實驗說明:採用三層架構,R1和R2為總部,R3和R4為區域,R5和R6為分支機構,R7模擬Internet路由器
R2和R3兒童s0/3連線,R1和R4用s0/1連線,上圖有誤
實驗要求:
1.分支到達總部或者其他區域要使用R1做為主鏈路,R2成為備用鏈路
2.IP編址的層次化,要能實現路由彙總
3.把分支機構的路由器做為Stub節點,避免其他路由器向分支傳送查詢
4.將R7做為Internet路由器,由R2傳送一條預設路由到其他分站點
5.在R1和R2之間完成驗證
步驟:
1.配置IP地址以及EIGRP路由
2.在R6 擴充套件PING172.12.0.1
Reply to request 3 (56 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(172.13.36.6)
(172.13.0.3)
(172.12.0.1)
(172.13.0.1)
(172.13.36.3)
(172.13.36.6) <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list
Reply to request 4 (56 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(172.13.36.6)
(172.23.0.3)
(172.12.0.2)
(172.12.0.1)
(172.13.0.1)
(172.13.36.3)
(172.13.36.6) <*>
(0.0.0.0)
(0.0.0.0)
End of list
可以看到R6到172.12.0.0的網段負載均衡,分別走R1和R2到達
修改R2的s0/0 s0/3兩條鏈路的頻寬
看R3的路由
修改前的路由
R3#show ip route
172.12.0.0/24 is subnetted, 1 subnets
D 172.12.0.0 [90/2195456] via 172.23.0.2, 00:00:15, Serial0/3
[90/2195456] via 172.13.0.1, 00:00:15, Serial0/0
修改後的路由
R3#show ip route
172.12.0.0/24 is subnetted, 1 subnets
D 172.12.0.0 [90/2195456] via 172.13.0.1, 00:00:10, Serial0/0
在R6上再次實現擴充套件PING
Reply to request 0 (128 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(172.13.36.6)
(172.13.0.3)
(172.12.0.1)
(172.13.0.1)
(172.13.36.3)
(172.13.36.6) <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list
可以看到所有到172.12.0.0網段的資料都走R1而不會走R2
2.路由彙總
在R5和R6建立環回口,介面地址在56.1.0.0/16的網段
看R1的路由表
R1#show ip route
56.0.0.0/24 is subnetted, 4 subnets
D 56.1.1.0 [90/2809856] via 172.13.0.3, 00:00:57, Serial0/0
D 56.1.3.0 [90/2809856] via 172.13.0.3, 00:00:18, Serial0/0
D 56.1.2.0 [90/2809856] via 172.13.0.3, 00:00:57, Serial0/0
D 56.1.4.0 [90/2809856] via 172.13.0.3, 00:00:18, Serial0/0
在R3彙總56.1.0.0/16的路由
看R1的路由表
R1#show ip route
D 56.1.0.0 [90/2809856] via 172.13.0.3, 00:00:19, Serial0/0
R1#ping 56.1.4.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 56.1.4.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/94/120 ms
3.在此拓撲中,假設不把把R4設成stub,斷開R1的e1/0
Mar 1 01:08:26.563: IP-EIGRP(Default-IP-Routing-Table:90): Processing incoming QUERY packet
*Mar 1 01:08:26.563: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.12.0.0/24 M 4294967295 - 0 4294967295 SM 4294967295 - 0 4294967295
把R4設定成Stub,不會收到查詢包了
R4#
*Mar 1 01:11:54.771: IP-EIGRP(Default-IP-Routing-Table:90): Processing incoming UPDATE packet
*Mar 1 01:11:54.775: IP-EIGRP(Default-IP-Routing-Table:90): Int 172.12.0.0/24 M 4121600 - 2560000 1561600 SM 3609600 - 2560000 1049600
4.預設路由
取消Stub配置
R2: ip route 0.0.0.0 0.0.0.0 200.1.1.7
R2(config)#router eigrp 90
R2(config-router)#redistribute static
看R6的路由表
R6#show ip route
D*EX 0.0.0.0/0 [170/2733056] via 172.13.36.3, 00:00:09, Serial0/2
5.在R1和R2之間配置驗證
key chain cisco
key 1
key-string 123456
ip authentication mode eigrp 90 md5
ip authentication key-chain eigrp 90 cisco
轉載於:https://blog.51cto.com/liu008qing/449198