網絡工程師交換試驗手冊之十五:EIGRP實驗

實驗目的:
掌握EIGRP協議的基本工做原理,熟悉EIGRP協議配置的基本步驟。
實驗拓撲:


實驗內容:
1.路由器的基本配置
R3的基本配置
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Serial1
ip address 192.168.10.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.168.10.3 102 broadcast
frame-relay map ip 192.168.10.4 102 broadcast
frame-relay map ip 192.168.10.5 103 broadcast
no frame-relay inverse-arp
R4上的基本配置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Loopback1
ip address 2.2.3.2 255.255.255.0
interface Serial0
ip address 192.168.10.4 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.168.10.3 201 broadcast
frame-relay map ip 192.168.10.4 201 broadcast
frame-relay map ip 192.168.10.5 201 broadcast
no frame-relay inverse-arp
R5上的基本配置
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Serial0
ip address 192.168.10.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.168.10.3 301 broadcast
frame-relay map ip 192.168.10.4 301 broadcast
frame-relay map ip 192.168.10.5 301 broadcast
no frame-relay inverse-arp
!
2.配置EIGRP協議
在R2上配置EIGPR協議
R3(config)#router eigrp 100
R3(config-router)#net 1.1.1.0
R3(config-router)#net 192.168.10.0
在R4上配置EIGRP協議
R4(config)#router eigrp 100
R4(config-router)#net 2.2.2.0
R4(config-router)#net 2.2.3.0
R4(config-router)#net 192.168.10.0
在R5上配置EIGRP協議
R5(config)#router eigrp 100
R5(config-router)#net 192.168.10.0
R5(config-router)#net 3.3.3.0
3.查看EIGRP路由表
查看R3上的路由表
R3#show ip route
05:49:42: %SYS-5-CONFIG_I: Configured from console by console
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, 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 not set
     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       1.0.0.0/8 is a summary, 00:02:54, Null0
C       1.1.1.0/24 is directly connected, Loopback0
D    2.0.0.0/8 [90/2297856] via 192.168.10.4, 00:01:00, Serial1
D    3.0.0.0/8 [90/2297856] via 192.168.10.5, 00:00:08, Serial1
C    192.168.10.0/24 is directly connected, Serial1
查看R4上的路由表
R4#show 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, 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 not set
D    1.0.0.0/8 [90/2297856] via 192.168.10.3, 00:00:36, Serial0
     2.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D       2.0.0.0/8 is a summary, 00:01:06, Null0
C       2.2.2.0/24 is directly connected, Loopback0
C       2.2.3.0/24 is directly connected, Loopback1
C    192.168.10.0/24 is directly connected, Serial0
05:49:15: %SYS-5-CONFIG_I: Configured from console by console
查看R5上的路由表
R5#show 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, 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 not set
06:12:22: %SYS-5-CONFIG_I: Configured from console by console
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       3.0.0.0/8 is a summary, 00:00:10, Null0
C       3.3.3.0/24 is directly connected, Loopback0
C    192.168.10.0/24 is directly connected, Serial0
4.爲EIGRP配置被動接口
將R4上的S0口配置爲被動接口
查看此時的各個路由器上的路由表
R3上
R3#show 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, 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 not set
     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       1.0.0.0/8 is a summary, 00:01:54, Null0
C       1.1.1.0/24 is directly connected, Loopback0
D    3.0.0.0/8 [90/2297856] via 192.168.10.5, 00:01:54, Serial1
C    192.168.10.0/24 is directly connected, Serial1
R4上
R4#show 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, 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 not set
     2.0.0.0/24 is subnetted, 2 subnets
C       2.2.2.0 is directly connected, Loopback0
C       2.2.3.0 is directly connected, Loopback1
C    192.168.10.0/24 is directly connected, Serial0
R5上:
R5#show 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, 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 not set
D    1.0.0.0/8 [90/2297856] via 192.168.10.3, 00:00:03, Serial0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       3.0.0.0/8 is a summary, 00:00:03, Null0
C       3.3.3.0/24 is directly connected, Loopback0
C    192.168.10.0/24 is directly connected, Serial0
重點:有路由表可知EIGRP的被動接口即不能夠發送路由信息,也不能夠接受路由更新信息。
實驗總結: 對於第一學期來說EIGRP是沒有必要掌握的,由於它被放到了第二學期去講授,EIGRP是路由選路協議中收斂最快的協議,可是它的惟一缺點就是它是cisco自己的協議,若是你要用這個協議,那麼你全部的設備必須都是cisco的。
相關文章
相關標籤/搜索