Eigrp綜合實驗

 

CCNP_route筆記4 EIGRP綜合實驗

分類: 網絡工程|路由協議|CISCO 725人閱讀 評論(0) 收藏 舉報

authentication負載均衡路由器delayservicequery



如圖爲綜合實驗的拓撲圖,實驗的要求有:

1.R3的loopback0接口的網段彙總

2.R1去往R3的loopback0達到不等價負載均衡;R3去往R1的loopback0達到不等價負載均衡(EIGRP計算metric只考慮delay)

3.R1與R3之間實施認證

4.R4是EIGRP自治系統的邊界路由器,連接ISP,R4宣告默認路由

5.R4上實現PAT實現EIGRP自治系統能訪夠訪問公網IP

6.打斷DUAL查詢的環路,配置合適的路由器爲EIGRP stub


一個個解,基本的配置不記了,直接寫要求的配置


1:這裏需要在每一個出口的地方都配置路由彙總,彙總子網掩碼的計算方式是把ip中相同的部分不看,找出不同的部分在相應掩碼位置0,計算出掩碼,故此是R3上loopback口的彙總,故掩碼彙總爲/22

R3(config)#interface fastEthernet 0/0
R3(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0
R3(config-if)#exit
R3(config)#interface serial 1/0
R3(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0
R3(config-if)#exit
R3(config)#interface serial 1/1
R3(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0


2:這裏題目要求是改不等價負載均衡,而且只考慮delay,故含義是計算metric時候只考慮delay,故每一個路由器上需要把相應的k1置0,然後再調整R2上的端口delay,設置不等價負載均衡

R1(config)#router eigrp 100
R1(config-router)#metric weights ?
  <0-8>  Type Of Service (Only TOS 0 supported)
R1(config-router)#metric weights 0 0 0 0 1 0 


R2(config)#router eigrp 100
R2(config-router)#metric weights ?
  <0-8>  Type Of Service (Only TOS 0 supported)
R2(config-router)#metric weights 0 0 0 0 1 0 


R3(config)#router eigrp 100
R3(config-router)#metric weights ?
  <0-8>  Type Of Service (Only TOS 0 supported)
R3(config-router)#metric weights 0 0 0 0 1 0 

首先要改好K值然後才能夠建立鄰接關係,然後改R2的delay

R2(config)#interface serial 1/0
R2(config-if)#delay 1
R2(config-if)#exit
R2(config)#interface serial 1/1
R2(config-if)#delay 1
R2(config-if)#exit

最後改variance,這裏可以通過show ip eigrp 100(AS號)topology detail-links 來查看相應的FD和RD(AD),進行下計算,這裏我們計算的是5

故修改R1和R3,這樣不等價負載均衡就能起來了

R1(config)#router eigrp 100
R1(config-router)#variance 5


R3(config)#router eigrp 100
R3(config-router)#variance 5

3:EIGRP只支持md5的認證,而且需要注意,EIGRP傳遞時候是Hash的摘要,這個Hash包含了key-ID和key-string綜合計算的結果,所以ID和String需要對應

R1(config)#key chain R1key
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string cisco
R1(config-keychain-key)#exit
R1(config-keychain)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip authentication ?
  key-chain  key-chain
  mode       mode
R1(config-if)#ip authentication mode eigrp 100 md5 
R1(config-if)#ip authentication key-chain eigrp 100 R1key


R3(config)#key chain R3key
R3(config-keychain)#key 1
R3(config-keychain-key)#key-string cisco
R3(config-keychain-key)#exit
R3(config-keychain)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip authentication ?
  key-chain  key-chain
  mode       mode
R3(config-if)#ip authentication mode eigrp 100 md5 
R3(config-if)#ip authentication key-chain eigrp 100 R3key

4:宣告邊界路由,這裏指令很簡單,需要注意一點,如果是本來主類的網段無所謂,如果是vlsm或者cidr的情況下,默認宣告是直接不行的,需要開啓auto summary

R4(config)#router eigrp 100
R4(config-router)#network 202.119.248.0
R4(config-router)#exit
R4(config)#ip default-network 202.119.248.0

5:PAT的轉換,這裏不用太多解釋

R4(config)#access-list 1 permit any 
R4(config)#ip nat inside source list 1 interface serial 1/1 overload 
R4(config)#interface serial 1/0
R4(config-if)#ip nat inside 
R4(config-if)#exit
R4(config)#interface serial 1/1
R4(config-if)#ip nat outside 

6:宣告末節路由,stub,一般情況下都是選擇尾端的路由,即直接連交換機或者連主機的路由器,基本都以點對點的單獨連在一個路由器的進行考慮,stub主要爲了防止SIA的情況出現,拓撲中,能夠滿足stub條件的最好是R4,由於WAN網不需要反向查詢子網的信息,故不需要向R4發送query,也由於R4連在內網的尾端,故是直連的形式,內網也不需要發query問它,故選擇R4作爲stub,這裏選則R1在配置上不會出錯,不過不是太滿足題意。

R4(config)#router eigrp 100
R4(config-router)#eigrp stub 




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章