相關連結:
友情提示:友情提示:如果圖檔太小看不清楚,可以點選圖檔檢視原圖,或者下載下傳本次實驗資料。
拓撲圖
<a href="http://blog.51cto.com/attachment/201211/211019656.jpg" target="_blank"></a>
配置代碼:
R1:
en
conf t
int f1/0
ip add 172.16.1.1 255.255.255.0
no shut
int s0/0
ip add 172.16.3.1 255.255.255.252
int s0/1
ip add 192.168.10.5 255.255.255.252
router eigrp 1
net 172.16.0.0
net 192.168.10.4 0.0.0.3
R2:
ip add 172.16.2.1 255.255.255.0
ip add 172.16.3.2 255.255.255.252
ip add 192.168.10.9 255.255.255.252
int loop1
ip add 10.1.1.1 255.255.255.252
net 192.168.10.8 0.0.0.3
net 10.1.1.0
R3:
ip add 192.168.1.1 255.255.255.0
ip add 192.168.10.10 255.255.255.252
ip add 192.168.10.6 255.255.255.252
net 192.168.1.0
邊界路由會進行自動彙總。
R1路由表
Gateway of last resort is not set
192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
D 192.168.10.0/24 is a summary, 00:06:32, Null0
C 192.168.10.4/30 is directly connected, Serial0/1
D 192.168.10.8/30 [90/2681856] via 192.168.10.6, 00:06:32, Serial0/1
172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
D 172.16.0.0/16 is a summary, 00:06:32, Null0
C 172.16.1.0/24 is directly connected, FastEthernet1/0
D 172.16.2.0/24 [90/2172416] via 172.16.3.2, 00:06:35, Serial0/0
C 172.16.3.0/30 is directly connected, Serial0/0
D 10.0.0.0/8 [90/2297856] via 172.16.3.2, 00:06:34, Serial0/0
D 192.168.1.0/24 [90/2172416] via 192.168.10.6, 00:06:34, Serial0/1
R2路由表
D 192.168.10.0/24 is a summary, 00:02:18, Null0
D 192.168.10.4/30 [90/2681856] via 192.168.10.10, 00:02:38, Serial0/1
C 192.168.10.8/30 is directly connected, Serial0/1
D 172.16.0.0/16 is a summary, 00:02:38, Null0
D 172.16.1.0/24 [90/2172416] via 172.16.3.1, 00:02:21, Serial0/0
C 172.16.2.0/24 is directly connected, FastEthernet1/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/30 is directly connected, Loopback1
D 10.0.0.0/8 is a summary, 00:02:39, Null0
D 192.168.1.0/24 [90/2172416] via 192.168.10.10, 00:02:20, Serial0/1
R3路由表
D 192.168.10.0/24 is a summary, 00:06:06, Null0
C 192.168.10.8/30 is directly connected, Serial0/0
D 172.16.0.0/16 [90/2172416] via 192.168.10.9, 00:05:35, Serial0/0
[90/2172416] via 192.168.10.5, 00:05:35, Serial0/1
D 10.0.0.0/8 [90/2297856] via 192.168.10.9, 00:05:35, Serial0/0
C 192.168.1.0/24 is directly connected, FastEthernet1/0
連通性測試
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/34/48 ms
【搞定】
【路由跟蹤:】
R3#tra
R3#traceroute 172.16.3.1
Tracing the route to 172.16.3.1
1 192.168.10.9 48 msec
192.168.10.5 24 msec
192.168.10.9 12 msec
R3#traceroute 172.16.3.2
Tracing the route to 172.16.3.2
1 192.168.10.5 44 msec
192.168.10.9 44 msec
192.168.10.5 0 msec
可以看出,進行了負載均衡!
Hello包的探索
Hello包用于發現鄰居和與發現的鄰居建立鄰居關系。使用多點傳播方式,使用不可靠傳輸。unreliable delivery.
圖1:
<a href="http://blog.51cto.com/attachment/201211/211357335.jpg" target="_blank"></a>
圖2 :
<a href="http://blog.51cto.com/attachment/201211/211357618.jpg" target="_blank"></a>
圖3:
<a href="http://blog.51cto.com/attachment/201211/211357626.jpg" target="_blank"></a>
Update 包探索
必要時發送更新,可多點傳播,可單點傳播,使用reliable delivery。
更新、查詢、應答都使用RTP,ACK始終是不可靠方式。
圖4:
本文轉自 天涯飛客 51CTO部落格,原文連結:http://blog.51cto.com/425093014/1060124,如需轉載請自行聯系原作者