【實驗目的】:
在本次實驗中,你將安裝加強的內部網關路由協議(EIGRP)和觀察它的缺省行爲。而後優化EIGRP配置。
在完成本次實驗以後,你須要完成下列任務:網絡
【實驗拓撲】:less
注意:圖中x爲所在機架編號,y爲路由器編號。dom
【實驗幫助】:
若是出現任何問題,能夠向在值的輔導老師提出並請求提供幫助。ide
【命令列表】: 學習
命令優化 |
描述this |
#debug ip eigrpspa |
顯示EIGRP的更新過程debug |
(config-router)#eigrp stub調試 |
指定那個路由器是一個EIGRP存根路由器 |
(config-if)#ip summary-address eigrp 1 10.x.0.0 255.255.0.0 |
在一個接口上建立和發佈一個彙總路由。 |
(config-router)#network 10.x.0.0 0.0.255.255 |
指定在這個網絡(10.3.0.0/16)內運行EIGRP協議 |
(config-router)#no auto-summary |
在類的邊界關閉自動彙總功能 |
(config)#router eigrp 1 |
打開EIGRP路由器議運行自治系統1 |
【任務一】:配置基本的EIGRP。
在這個任務中,你須要安裝和觀察這個EIGRP的行爲。
實驗以前,請確保你的路由器配置與下列相似:
P1R1 或P1R2:
hostname P1R1
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
!
interface Serial0
ip address 172.31.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 172.31.1.3 111 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.1 255.255.255.0
clockrate 64000
!
no ip http server
ip classless
P1R3或P1R4:
hostname P1R3
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
interface Ethernet0
ip address 10.1.1.3 255.255.255.0
!
interface Serial0
ip address 10.1.3.3 255.255.255.0
shutdown
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
no ip http server
ip classless
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
實驗過程:
第一步:使用自治系統號1配置EIGRP在每個路由器上。使用適當的網絡和掩碼值使全部的接口都運行EIGRP進程。在邊界路由器上關閉自動彙總。
第二步:使用show ip protocols命令驗證你的配置是不是正確的。肯定全部路由器的自治系統號爲1和全部領居交換路由是正常的。你的顯示結果應該與下列相似:
P1R2#sh ip pro
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 1
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is in effect
Automatic address summarization:
172.31.0.0/16 for Ethernet0, Serial1
Summarizing with metric 2169856
10.0.0.0/8 for Serial0
Summarizing with metric 281600
Maximum path: 4
Routing for Networks:
10.1.0.0/16
172.31.1.0/24
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:01:44
Gateway Distance Last Update
10.1.0.1 90 00:01:45
10.1.2.4 90 00:00:02
172.31.1.3 90 00:01:57
Distance: internal 90 external 170
P1R2#
第三步:在每個路由器上驗證EIGRP是接收了遠程路由條目。你的顯示應該以下列所示相似:
P1R2#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.31.0.0/24 is subnetted, 1 subnets
C 172.31.1.0 is directly connected, Serial0
10.0.0.0/24 is subnetted, 5 subnets
D 10.1.3.0 [90/2195456] via 10.1.2.4, 00:02:56, Ethernet0
C 10.1.2.0 is directly connected, Ethernet0
D 10.1.1.0 [90/2195456] via 10.1.0.1, 00:02:53, Serial1
C 10.1.0.0 is directly connected, Serial1
D 10.254.0.0 [90/2195456] via 172.31.1.3, 00:02:25, Serial0
第四步:在內部路由器(PxR3和PxR4) 使用debug ip eigrp命令去監視EIGRP查詢。
第五步:在邊界路由器上關閉串行接口(The s0/1 interface on PxR1 and PxR2)。
第六步:查看內部路由器上的EIGRP查詢,你的顯示應該與下列相似:
第七步:關閉全部的DEBUG命令。
第八步:在邊界路由上激活串行接口(The s0/1 interface on PxR1 and PxR2)。
【任務二】:配置EIGRP核心擴展性
在這個任務中,你將配置EIGRP路由彙總。這個更改將進一步控制EIGRP的查詢範圍,最小化更新通訊和最小化路由表增長EIGRP的擴展性和加速網絡的收斂。
實驗過程:
第一步:手動配置邊界路由器(PxR1和PxR2)彙總路由條目10.x.0.0/16到EIGRP核心路由器BBR1(在這裏x是你的機架編號)。
第二步:TELNET到BBR1(172.31.x.3)並驗證BBR1僅收到了一條彙總沒有,並無詳細路由條目。若是兩個邊界路由器是配置適當的,你應該能看到兩條等價的有效連路BBR1。你的顯示應該與下列相似:
BBR1>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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
Gateway of last resort is not set
172.31.0.0/24 is subnetted, 1 subnets
C 172.31.1.0 is directly connected, Serial0
S 192.168.11.0/24 [1/0] via 172.31.1.2
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D 10.1.0.0/16 [90/2195456] via 172.31.1.2, 00:00:04, Serial0
[90/2195456] via 172.31.1.1, 00:00:04, Serial0
C 10.254.0.0/24 is directly connected, Ethernet0
S 192.168.1.0/24 [1/0] via 172.31.1.1
【任務三】:配置EIGRP根(STUB)
咱們已經經過路由彙總優化了從邊界路由器到達核心路由器BBR1的路由表,可是怎樣限制從邊界路由器到內部路由器的查詢數據包呢?
實驗過程:
第一步: 使用eigrp stub connected summary命令配置內部路由器(PxR3和PxR4)爲EIGRP根。記住查詢範圍並不對路由表產生影響。
第二步:驗證邊界路由器是否識別內部部由器是一個EIGRP根。你的顯示輸入應該以下列所示:
P1R2#sh ip eigrp nei de
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.2.4 Et0 14 00:03:46 242 1452 0 69
Version 12.3/1.2, Retrans: 0, Retries: 0
Stub Peer Advertising ( CONNECTED SUMMARY ) Routes
Suppressing queries
1 10.1.0.1 Se1 12 00:04:10 34 204 0 87
Version 12.3/1.2, Retrans: 2, Retries: 0
2 172.31.1.3 Se0 128 00:03:34 44 264 0 34
Version 12.0/1.1, Retrans: 5, Retries: 0
P1R2#
第三步:這個根指出查詢通訊邊界和幫助避免ISA(stuck in active)狀態的發生,SIA是EIGRP長時期不能確認路由。爲了演示這種情形,在內部路由器上使用debug ip eigrp命令。
第四步:關閉邊界路由器的串行接口(PxR1和PxR2的s1口)。
第五步:與沒有將內部路由器配置爲根比較,這裏沒有查詢傳送到內部路由器。在配置內部路由器爲EIGRP根後,你不該該看到比下列輸出更多的調試信息。
P1R4#
02:41:32; IP – EIGRP: Processing incoming QUERY packet
第六步:從新打開邊界路由器的串行接口。
第七步:關閉內部路由器的調試信息。(PxR3和PxR4)。
【任務四】:配置EIGRP缺省路由
在這個任務中,邊界路由器將經過EIGRP發佈一條缺省路由到內部路由器。這個更改將經過最小化路由更新和最小華路由表增長EIGRP的穩定性和收斂速度。
實驗過程:
第一步: 從邊界路由器發送一條缺省路由到內部路由器,同時你也應該過濾全部的詳細路由。你能夠在邊界路由器上使用一條0.0.0.0 0.0.0.0匯聚路由發送到內部路由器完成這個目的。
第二步:檢查內部路由器的路由表。你能夠看到一條缺省路由和直連路由和EIGRP從其餘內部路由器上學習到的路由,可是沒有詳細的路由條目。這些條目被過濾掉了。你的顯示輸入應該與下列相似:
P1R4#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 10.1.2.2 to network 0.0.0.0
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.3.0 is directly connected, Serial0
C 10.1.2.0 is directly connected, Ethernet0
D 10.1.1.0 [90/2195456] via 10.1.3.3, 00:03:11, Serial0
D* 0.0.0.0/0 [90/307200] via 10.1.2.2, 00:00:19, Ethernet0
P1R4#
【實驗驗證】:
成功完成整個實驗,你須要完成下列任務:
【路由器配置】:
P1R1:
hostname P1R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
ip summary-address eigrp 1 0.0.0.0 0.0.0.0 5
!
interface Serial0
ip address 172.31.1.1 255.255.255.0
encapsulation frame-relay
ip summary-address eigrp 1 10.1.0.0 255.255.0.0 5
frame-relay map ip 172.31.1.3 111 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.1 255.255.255.0
clockrate 64000
!
router eigrp 1
network 10.1.0.0 0.0.255.255
network 172.31.1.0 0.0.0.255
no auto-summary
!
no ip http server
ip classless
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
End
P1R2:
hostname P1R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Ethernet0
ip address 10.1.2.2 255.255.255.0
ip summary-address eigrp 1 0.0.0.0 0.0.0.0 5
!
interface Serial0
ip address 172.31.1.2 255.255.255.0
encapsulation frame-relay
ip summary-address eigrp 1 10.1.0.0 255.255.0.0 5
frame-relay map ip 172.31.1.3 112 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.2 255.255.255.0
!
router eigrp 1
network 10.1.0.0 0.0.255.255
network 172.31.1.0 0.0.0.255
no auto-summary
!
no ip http server
ip classless
!
!
!
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
!
!
End
P1R3:
hostname P1R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
!
!
!
interface Ethernet0
ip address 10.1.1.3 255.255.255.0
!
interface Serial0
ip address 10.1.3.3 255.255.255.0
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
router eigrp 1
network 10.1.0.0 0.0.255.255
auto-summary
eigrp stub connected summary
!
no ip http server
ip classless
!
!
!
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
End
P1R4: hostname P1R4 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero no ip domain lookup ! ! ! ! interface Ethernet0 ip address 10.1.2.4 255.255.255.0 ! interface Serial0 ip address 10.1.3.4 255.255.255.0 ! interface Serial1 no ip address ! router eigrp 1 network 10.1.0.0 0.0.255.255 auto-summary eigrp stub connected summary ! no ip http server ip classless ! ! ! ! line con 0 exec-timeout 0 0 logging synchronous line aux 0 line vty 0 4 ! ! end