项目作者: QueenieCplusplus

项目描述 :
Enhanced Interior Gateway Routing Protocol
高级语言:
项目地址: git://github.com/QueenieCplusplus/CCNP_EIGRP_2.git
创建时间: 2020-06-28T01:56:11Z
项目社区:https://github.com/QueenieCplusplus/CCNP_EIGRP_2

开源协议:

下载


CCNP EIGRP 2

Enhanced Interior Gateway Routing Protocol

實際操作

  1. ISP Router 1
  2. RouterA
  3. RouterC RouterB

(1) 將各介面的 IP 位址設定好。

  1. AS200: 172.16.11.0
  2. |
  3. ISP Router 1
  4. s1
  5. 10.2.2.100/255.255.255.0
  6. |
  7. 10.2.2.12/255.255.255.0
  8. RouterA
  9. / | \
  10. 192.168.2.49/255.255.255.240 192.168.2.33/255.255.255.240
  11. | \
  12. 192.168.2.17/255.255.255.240\
  13. / \ \
  14. / \ \
  15. 192.168.2.50 192.168.2.18 192.168.2.34/255.255.255.240
  16. / | \ \
  17. RouterC - 192.168.2.16/255.255.255.240 RouterB
  18. \ |
  19. 192.168.2.65/255.255.255.240

(2) 利用指令 router eigrp 在路由器 C 上使用 EIGRP 設定。

  1. RouterC# conf t
  2. RouterC(config)#router eigrp 200
  3. RouterC(config-router)#network 192.168.2.0
  4. ctrl + Z

(3) 在 ISP 路由器上設定 EIGRP 網段,包含 10.0.0.0 和 172.16.0.0,設定完成後,使用指令 sh run 來做檢視。

  1. (略)
  2. ISP_Router1#sh run
  3. !
  4. hostname ISP_Router1
  5. !
  6. ip subnet-zero
  7. !
  8. no ip domain lookup
  9. !
  10. --More--
  11. int lo0
  12. ip address 172.16.1.100 255.255.255.0
  13. no ip directed-broadcast
  14. (略)
  15. int s0
  16. ip address 10.1.1.100 255.255.255.0
  17. no ip directed-broadcast
  18. ip summary-address eigrp 172.16.0.0 255.255.0.0 5
  19. ip summary-address eigrp 10.0.0.0 255.0.0.0 5
  20. no ip mroute-cache
  21. no fair-queue
  22. clockrate 56000
  23. !
  24. int s1
  25. ip address 10.2.2.100 255.255.255.0
  26. no ip directed-broadcast
  27. clockrate 56000
  28. !
  29. (略)
  30. !
  31. router eigrp 200
  32. network 10.0.0.0
  33. network 172.16.0.0
  34. !
  35. ip classless
  36. no ip http server
  37. !
  38. line con 0
  39. exec-timeout 0 0
  40. logging sync
  41. transport input none
  42. line aux 0
  43. line vty 0 4
  44. exec-timeout 0 0
  45. logging sync
  46. no login
  47. !
  48. end

(4) 為路由器 A 設定 EIGRP 網段,包含 10.0.0.0 和 192.168.2.0,設定完成後,使用指令 sh run 檢視路由器資訊。

(5) 為路由器 B 設定 EIGRP 網段 192.168.2.0,設定完成後,使用指令 sh run 檢視路由器資訊。

(6) 在 ISP 路由器上,執行命令 show ip route,查看路由表結果。
結果顯示路由器透過 10.2.2.2 此目標 IP 位址,學習到 192.168.2.0 網段。

  1. ISP_Router1#sh ip route
  2. // mode 中 EIGRP 代表 D, connected 代表 C
  3. C
  4. C
  5. C (略)
  6. D 192.168.1.0/255.255.255.0 via 10.1.1.1, S0
  7. 192.168.2.0/255.255.255.0 is variably subnetted, 2 subnets, 2 masks
  8. // int s0
  9. // ip address 10.1.1.100 255.255.255.0
  10. D 192.168.2.0/255.255.255.128 via 10.2.2.2, S1
  11. 192.168.2.0/255.255.255.0 via 10.2.2.2, S1
  12. // int s1
  13. // ip address 10.2.2.100 255.255.255.0

(6) 如同步驟 6,使用同樣指令 sh ip route 檢視 RouterA、B、C 的路由表。

路徑自動集合

  1. auto summary

to be continued…

拓樸表的檢視

  1. RouterA#sh ip eigrp topology
  2. codecs: P - passive, A - active, U - update, Q -q uery, R - reply, r - reply status
  3. //FD feasible distance
  4. P 10.0.0.0/8, 1 succesors, FD
  5. P 10.2.2.0/24, 1 succesors, FD, via connected, serial 1/3
  6. (略)

鄰接表的檢視

  1. RouterC#sh ip eigrp neighbors
  2. H Address(臨街的ip位址) Int Hold(ms) Uptime SRTT RTO Q CNT Seq Type(序號)
  3. 1 192.168.2.49 se0/0 13 00:05:13 136 1140 0 158
  4. 0 192.168.2.65 et0/0 14 00:28:42 1 200 0 140
  5. //Q CNT 佇列
  6. //uptime means 啟動時間
  7. //hold means 最大等待時間(未收到鄰近資訊的時間)
  8. //SRTT means 平均送出和接收資訊的時間 (smooth round trip time)
  9. //RTO means 再次傳送的中間時間 (retransmit interval)

其他路由指令

  1. #sh ip protocols
  2. // 顯示路由協定狀態
  3. #sh ip route
  4. // 查看路由表學習結果
  5. #sh ip route eigrp
  6. // 查看路由表特定協定的學習結果
  7. #sh ip eigrp traffic
  8. // 顯示路由器特定協定的封包收發統計資訊
  9. #debug ip eigrp
  10. // 開啟除錯
  11. #debug eigrp packets
  12. // 查看 eigrp 所有封包類型
  13. #debug eigrp neighbors
  14. // 開啟鄰接的除錯功能
  15. #no debug all
  16. // 關閉除錯
  17. #debug ip eigrp summary
  18. // 顯示 路徑集合的資訊(包含過濾及路徑再配置)