EIGRP實驗

 
拓撲圖如上
實驗要求
一、配置IP
1. R1-->(s1/0=12.1.1.1/24;s1/1=172.16.21.1/24)
      
   R2--> (s1/0=12.1.1.2/24;s0/1=172.16.21.2/24;f0/0=192.168.32.2/24)
   R3-->(f0/0=192.168.32.3/24)
-------------------------------------------------------------------------- 
2.用EIGPR宣告其他網絡(用反掩碼宣告,AS=100)。
3.觀察route table
4.關閉自動彙總,觀察route table
5.配置MD5驗證(R2與R3間接口)
6.在R2的f0/0接口做手工彙總:
   .觀察R2與R3的路由表
   .所有網絡都彙總爲16位
   .觀察彙總前後,R2與R3的路由表變化
   .在R2與R3上察看彙總路由AD值(sh ip rout X.X.X.x/16)
   .在R2上彙總後,R1路由表變化?
配置R1
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R1(config)#int s1/0
R1(config-if)#no sh
R1(config-if)#ip add 12.1.1.1 255.255.255.0
R1(config-if)#int s1/1
R1(config-if)#no sh
R1(config-if)#ip add 172.16.21.1 255.255.255.0
R1(config-if)#exit
R1(config)#router eigrp 100
R1(config-router)#netw 12.1.1.0 0.0.0.255
R1(config-router)#netw 172.16.21.0 0.0.0.255
R1(config-router)#
*Mar  1 00:06:29.295: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is up: new adjacency
R1(config-router)#
*Mar  1 00:06:36.495: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is up: new adjacency
R1(config-router)#
R1#sh ip
*Mar  1 00:07:08.115: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip ruote
          ^
% Invalid input detected at '^' marker.
R1#sh ip route
Codes: C - connected, S - static, 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
       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 not set
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.21.0/24 is directly connected, Serial1/1
D       172.16.0.0/16 is a summary, 00:00:37, Null0
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       12.1.1.0/24 is directly connected, Serial1/0
D       12.0.0.0/8 is a summary, 00:00:37, Null0
D    192.168.32.0/24 [90/2195456] via 172.16.21.2, 00:00:28, Serial1/1
                     [90/2195456] via 12.1.1.2, 00:00:28, Serial1/0
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router eigrp 100
R1(config-router)#no auto
R1(config-router)#
*Mar  1 00:14:35.251: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is resync: summary configured
*Mar  1 00:14:35.255: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is resync: summary configured
R1(config-router)#
R1#sh
*Mar  1 00:14:40.063: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip route
Codes: C - connected, S - static, 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
       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 not set
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.21.0/24 is directly connected, Serial1/1
D       172.16.0.0/16 [90/2681856] via 12.1.1.2, 00:00:07, Serial1/0
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       12.1.1.0/24 is directly connected, Serial1/0
D       12.0.0.0/8 [90/2681856] via 172.16.21.2, 00:00:07, Serial1/1
D    192.168.32.0/24 [90/2195456] via 172.16.21.2, 00:07:57, Serial1/1
                     [90/2195456] via 12.1.1.2, 00:07:57, Serial1/0
R1#
*Mar  1 00:14:53.739: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is resync: peer graceful-restart
*Mar  1 00:14:53.747: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is resync: peer graceful-restart
R1#
配置Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R2(config)#int s1/1
R2(config-if)#no sh
R2(config-if)#ip add 1
*Mar  1 00:02:58.031: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
R2(config-if)#ip add 172.1
*Mar  1 00:02:59.035: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R2(config-if)#ip add 172.16.21.2 255.255.255.0
R2(config-if)#int s1/0
R2(config-if)#no sh
R2(config-if)#ip add
*Mar  1 00:03:12.787: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
R2(config-if)#ip add
*Mar  1 00:03:13.795: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#int f0/0
R2(config-if)#no sh
R2(config-if)#
*Mar  1 00:03:34.291: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:03:35.291: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#ip add 192.168.32.2 255.255.255.0
R2(config-if)#exi
R2(config)#router eigrp 100
R2(config-router)#netw 172.16.21.0 0.0.0.255
R2(config-router)#netw
*Mar  1 00:06:30.187: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is up: new adjacency
R2(config-router)#netw 12.1.1.0 0.0.0.255
R2(config-router)#netw
*Mar  1 00:06:37.423: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is up: new adjacency
R2(config-router)#netw 192.168.32.0 0.0.0.255
R2(config-router)#
*Mar  1 00:07:05.651: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is up: new adjacency
R2(config-router)#
R2#sh
*Mar  1 00:14:06.171: %SYS-5-CONFIG_I: Configured from console by console
R2#sh ip route
Codes: C - connected, S - static, 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
       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 not set
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.21.0/24 is directly connected, Serial1/1
D       172.16.0.0/16 is a summary, 00:07:31, Null0
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       12.1.1.0/24 is directly connected, Serial1/0
D       12.0.0.0/8 is a summary, 00:07:31, Null0
C    192.168.32.0/24 is directly connected, FastEthernet0/0
R2#
*Mar  1 00:14:36.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is resync: peer graceful-restart
*Mar  1 00:14:36.079: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is resync: peer graceful-restart
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router eig 100
R2(config-router)#no auto
R2(config-router)#
*Mar  1 00:14:54.459: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is resync: summary configured
*Mar  1 00:14:54.463: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is resync: summary configured
*Mar  1 00:14:54.467: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-router)#
*Mar  1 00:15:04.675: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: peer graceful-restart
R2(config-router)#
R2#
*Mar  1 00:15:53.307: %SYS-5-CONFIG_I: Configured from console by console
R2(config)#key chain cisco
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string huawei
R2(config-keychain-key)#exit
R2(config-keychain)#exit
R2(config)#inR2(config-if)#ip authentication mode eigrp 100 md5
R2(config-if)#ip authentication key-chain eigrp 100 cisco
配置R3
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R3(config)#int f0/0
R3(config-if)#no sh
R3(config-if)#ip add
*Mar  1 00:04:01.695: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:04:02.695: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#ip add 192.168.32.3 255.255.255.0
R3(config-if)#exit
R3(config)#router eigrp 100
R3(config-router)#netw 192.168.32.0 0.0.0.255
R3(config-router)#
*Mar  1 00:07:05.323: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is up: new adjacency
R3(config-router)#
R3#sh ip r
*Mar  1 00:07:25.707: %SYS-5-CONFIG_I: Configured from console by console
R3#sh ip route
Codes: C - connected, S - static, 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
       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 not set
D    172.16.0.0/16 [90/2195456] via 192.168.32.2, 00:00:20, FastEthernet0/0
D    12.0.0.0/8 [90/2195456] via 192.168.32.2, 00:00:20, FastEthernet0/0
C    192.168.32.0/24 is directly connected, FastEthernet0/0
R3#
*Mar  1 00:14:54.107: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is resync: peer graceful-restart
R3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#router eig 100
R3(config-router)#no au
R3(config-router)#
*Mar  1 00:15:04.147: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is resync: summary configured
R3(config-router)#
R3#sh ip
*Mar  1 00:15:36.711: %SYS-5-CONFIG_I: Configured from console by console
R3#sh ip route
Codes: C - connected, S - static, 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
       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 not set
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.21.0 [90/2195456] via 192.168.32.2, 00:00:44, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
D       12.1.1.0 [90/2195456] via 192.168.32.2, 00:00:44, FastEthernet0/0
C    192.168.32.0/24 is directly connected, FastEthernet0/0
R3(config)#key
R3(config)#key cha
R3(config)#key chain cisco
R3(config-keychain)#key 1
R3(config-keychain-key)#key str
R3(config-keychain-key)#key   
R3(config-keychain-key)#key-string huawei
R3(config-keychain-key)#exit
R3(config-keychain)#exit
R3(config)#int f0/0
R3(config-if)#ip authen mode eigrp 100 md5
R3(config-if)#ip authen key
R3(config-if)#ip authen key-chain eigrp 100 cisco
R3(config-if)#
*Mar  1 00:28:07.783: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is up: new adjacency
 
6.在R2的f0/0接口做手工彙總:
R2(config)#int f0/0
R2(config-if)#ip summary-address eigrp 100 12.1.0.0 255.255.0.0
R2(config-if)#ip s
*Mar  1 00:31:19.511: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-if)#ip sum eig 100 172.16.0.0 255.255.0.0 
R2(config-if)#ip
*Mar  1 00:31:39.615: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-if)#ip sum eig 100 192.168.0.0 255.255.0.0
R2(config-if)#
*Mar  1 00:31:56.023: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2#sh ip route   
Codes: C - connected, S - static, 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
       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 not set
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.21.0/24 is directly connected, Serial1/1
D       172.16.0.0/16 is a summary, 00:00:03, Null0(只有eigrp是自動生成指向null0的路由)
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       12.1.1.0/24 is directly connected, Serial1/0
D       12.1.0.0/16 is a summary, 00:00:03, Null0
C    192.168.32.0/24 is directly connected, FastEthernet0/0
D    192.168.0.0/16 is a summary, 00:00:03, Null0
R3#sh ip route
Codes: C - connected, S - static, 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
       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 not set
D    172.16.0.0/16 [90/2195456] via 192.168.32.2, 00:02:41, FastEthernet0/0
     12.0.0.0/16 is subnetted, 1 subnets
D       12.1.0.0 [90/2195456] via 192.168.32.2, 00:03:02, FastEthernet0/0
C    192.168.32.0/24 is directly connected, FastEthernet0/0
D    192.168.0.0/16 [90/307200] via 192.168.32.2, 00:02:25, FastEthernet0/0
R2#sh ip route 172.16.0.0 255.255.0.0
Routing entry for 172.16.0.0/16
  Known via "eigrp 100", distance 5, metric 2169856, type internal(手工彙總後ad值變爲5)
  Redistributing via eigrp 100
  Routing Descriptor Blocks:
  * directly connected, via Null0
      Route metric is 2169856, traffic share count is 1
      Total delay is 20000 microseconds, minimum bandwidth is 1544 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 0
二.計算METRIC值(在R1上計算)
      .計算R3的f0/0到R1的metric值(在R1上計算
metric值=(10^7/沿途入向更新接口帶寬最小值+沿途入向接口延遲和/10)x256
R2#sh int f0/0
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
R1#sh int s1/1
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
所以
R1的s1/1接口的metric值=[10000000//1544+(20000+1000)/10]x256=2195456
驗證一下
R3#sh ip route 172.16.0.0 255.255.0.0
Routing entry for 172.16.0.0/16
  Known via "eigrp 100", distance 90, metric 2195456, type internal
  Redistributing via eigrp 100
  Last update from 192.168.32.2 on FastEthernet0/0, 00:18:01 ago
  Routing Descriptor Blocks:
  * 192.168.32.2, from 192.168.32.2, 00:18:01 ago, via FastEthernet0/0
      Route metric is 2195456, traffic share count is 1
      Total delay is 21000 microseconds, minimum bandwidth is 1544 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章