EIGRP協議在路由計算中要對網路頻寬、網路時延、通道佔用率和通道可信度等因素作全面的綜合考慮,所以EIGRP的路由計算更為準確,更能反映網路的實際情況,下面跟小編看一下EIGRP浮動彙總路由配置過程。
![解析EIGRP浮動彙總路由配置 解析EIGRP浮動彙總路由配置](https://i1.caizhika.com/313a4a119e1ba9/726104/313b5d0493/72610447ca4ae0.jpg)
EIGRP浮動彙總路由配置過程如下:
EIGRP浮動彙總路由配置之拓撲圖
例項解析EIGRP浮動彙總路由配置
EIGRP浮動彙總路由配置之介面連線
Router1 S0/0 <----> Router2 S0/0
Router2 S0/1 <----> Router3 S0/0
Router1 S0/1 <----> Router4 S0/0
Router3 S0/1 <----> Router4 S0/1
VPCS V0/1 <----> Router1 E1/0
VPCS V0/2 <----> Router3 E1/0
EIGRP浮動彙總路由配置之原理
在R1R2R3R4上均執行EIGRP路由協議。R4通過S0/1向R3通告一條 的彙總路由,並將這條浮動路由的管理距離設定為250,於是在網路連通的情況下R3上到達網段的路由經過R2,而在R2與R3鏈路故障的時候,通過R3前往的'資料包會通過R4(R3拓撲表中,預設路由由A變為P)
EIGRP浮動彙總路由配置之關鍵配置
R1:
interface Serial0/0
ip address
serial restart-delay 0
!
interface Serial0/1
ip address
serial restart-delay 0
!
interface Ethernet1/0
ip address
half-duplex
!
router eigrp 100
network
network
network
no auto-summary
R2、R3略,參照R1進行介面IP和路由協議的配置,重點看下R4的配置
R4:
interface Serial0/0
ip address
serial restart-delay 0
!
interface Serial0/1
ip address
ip summary-address eigrp 100 250(向R3通過預設路由,管理距離高於EIGRP預設值)!
router eigrp 100
network
network
auto-summary
EIGRP浮動彙總路由配置之檢視結果
1.R2和R3之間鏈路正常時
a) R3的路由表:
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is to network
D [90/2707456] via , 00:00:02, Serial0/0
C is directly connected, Ethernet1/0
C is directly connected, Serial0/1
D [90/2681856] via , 00:00:02, Serial0/0
C is directly connected, Serial0/0
D [90/3193856] via , 00:00:02, Serial0/0
D* [90/2681856] via , 00:00:00, Serial0/1
b)R3的拓撲表:
R3#sh ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID()
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
A , 1 successors, FD is Inaccessible
1 replies, active 00:00:00, query-origin: Successor Origin
Remaining replies:
via , r, Serial0/0
P , 1 successors, FD is 2681856
via (2681856/2169856), Serial0/0
P , 1 successors, FD is 2169856
via Connected, Serial0/0
P , 1 successors, FD is 3193856
via (3193856/2681856), Serial0/0
P , 1 successors, FD is 2169856
via Connected, Serial0/1
P , 1 successors, FD is 2707456
via (2707456/2195456), Serial0/0
P , 1 successors, FD is 281600
via Connected, Ethernet1/0
2.R2的S0/1設定為DOWN,觀察R3路由表和拓撲表
a)R3路由表:
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is to network
C is directly connected, Ethernet1/0
C is directly connected, Serial0/1
C is directly connected, Serial0/0
D* [90/2681856] via , 00:00:05, Serial0/1
b)R3的拓撲表:
R3#sh ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID()
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P , 1 successors, FD is 2681856
via (2681856/2169856), Serial0/1
P , 1 successors, FD is 2169856
via Connected, Serial0/1
P , 1 successors, FD is 281600
via Connected, Ethernet1/0