成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

EIGRP路由協議的配置實例解析

網絡
因為幀中繼默認為NBMA 模式,也就是非廣播的多路訪問模式,它會阻止廣播數據和組播數據,我們在接口配置過程中,幀中繼的DLCI號和IP映射時也沒有配置broadcast 參數,這類問題該如何解決?本文的內容回答以上疑問。

EIGRP路由協議的配置拓撲圖

EIGRP路由協議的配置實例解析

  1. R1(config)#router eigrp 100  
  2. R1(config-router)#no auto-summary  //關閉自動匯總  
  3. R1(config-router)#net 192.168.1.0  //宣告路由條目  
  4. R1(config-router)#end  
  5.  
  6. R2(config)#router eigrp 100  
  7. R2(config-router)#no auto-summary  
  8. R2(config-router)#net 192.168.1.0  
  9. R2(config-router)#net 10.1.0.0 0.0.255.255 //宣告路由條目  
  10. R2(config-router)#end  
  11.  
  12. R3(config)#router eigrp 100  
  13. R3(config-router)#no auto-summary  
  14. R3(config-router)#net 192.168.1.0  
  15. R3(config-router)#net 172.16.0.0 0.0.255.255  
  16. R3(config-router)#end 

檢查:

  1. R1#show ip eigrp neighbors  //查看eigrp 鄰居表,發現并沒有鄰居  
  2. IP-EIGRP neighbors for process 100  
  3.  
  4. R1#show ip eigrp topology //查看EIGRP 拓撲表,并沒有學習到任何的路由  
  5. IP-EIGRP Topology Table for AS(100)/ID(192.168.1.1)  
  6.  
  7. Codes: P – Passive, A – Active, U – Update, Q – Query, R – Reply,  
  8.        r – reply Status, s – sia Status  
  9.  
  10. P 192.168.1.0/24, 1 successors, FD is 2169856  
  11.         via Connected, Serial0/0 

因為幀中繼默認為NBMA 模式,也就是非廣播的多路訪問模式,它會阻止廣播數據和組播數據,我們在接口配置過程中,幀中繼的DLCI 號和IP 映射時也沒有配置broadcast 參數,而EIGRP 路由協議通過組播地址224.0.0.10 來發送相應的路由信息(比如hello、update 等數據包),所以R1 并沒有發現任何的鄰居路由器。

為了能讓EIGRP的路由信息通過幀中繼傳播,在沒有配置broadcast 參數的情況下,我們可以通過單播的形式來發送EIGRP 數據包,我們對以上的配置進行改進:

  1. R1(config)#router eigrp 100  
  2. R1(config-router)#neighbor 192.168.1.2 serial 0/0  //手工指定鄰居,實現單播方式  
  3. R1(config-router)#neighbor 192.168.1.3 serial 0/0  
  4. R1(config-router)#end  
  5.  
  6. R2(config)#router eigrp 100  
  7. R2(config-router)#neighbor 192.168.1.1 serial 0/0 //手工指定鄰居,實現單播方式  
  8. R2(config-router)#end  
  9.  
  10. R3(config)#router eigrp 100  
  11. R3(config-router)#neighbor 192.168.1.1 serial 0/0 //手工指定鄰居,實現單播方式  
  12. R3(config-router)#end 

驗證:

  1. *Mar  1 00:29:18.955: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0) is up: new adjacency  
  2. *Mar  1 00:29:19.115: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.3 (Serial0/0) is up: new adjacency  
  3. R1#show ip eigrp neighbors  
  4. IP-EIGRP neighbors for process 100  
  5. H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq  
  6.                                             (sec)         (ms)       Cnt Num  
  7. 1   192.168.1.3             Se0/0            156 00:01:19   99   594  0  3  
  8. 0   192.168.1.2             Se0/0            154 00:01:19  137   822  0  3  
  9.  
  10. R2#  
  11. *Mar  1 00:29:18.979: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.1 (Serial0/0) is up: new adjacency  
  12. R2#  
  13. R2#show ip eigrp neighbor  
  14. IP-EIGRP neighbors for process 100  
  15. H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq  
  16.                                             (sec)         (ms)       Cnt Num  
  17. 0   192.168.1.1             Se0/0            138 00:02:31  171  1026  0  7 

R1#show ip route eigrp 100 //查看路由表,可以看到R1 能夠學習到R2 和R3 相應的網絡

  1.      172.16.0.0/24 is subnetted, 4 subnets  
  2. D       172.16.0.0 [90/2297856] via 192.168.1.3, 00:03:45, Serial0/0  
  3. D       172.16.1.0 [90/2297856] via 192.168.1.3, 00:03:45, Serial0/0  
  4. D       172.16.2.0 [90/2297856] via 192.168.1.3, 00:03:45, Serial0/0  
  5. D       172.16.3.0 [90/2297856] via 192.168.1.3, 00:03:45, Serial0/0  
  6.      10.0.0.0/24 is subnetted, 4 subnets  
  7. D       10.1.3.0 [90/2297856] via 192.168.1.2, 00:03:45, Serial0/0  
  8. D       10.1.2.0 [90/2297856] via 192.168.1.2, 00:03:45, Serial0/0  
  9. D       10.1.1.0 [90/2297856] via 192.168.1.2, 00:03:45, Serial0/0  
  10. D       10.1.0.0 [90/2297856] via 192.168.1.2, 00:03:45, Serial0/0 

R1#ping 10.1.0.1  //驗證是否可以訪問R2 的網絡

  1. Type escape sequence to abort.  
  2. Sending 5, 100-byte ICMP Echos to 10.1.0.1, timeout is 2 seconds:  
  3. !!!!!  
  4. Success rate is 100 percent (5/5), round-trip min/avg/max = 20/56/104 ms  
  5. R1#ping 172.16.0.1  //驗證是否可以訪問R3 的網絡  
  6.  
  7. Type escape sequence to abort.  
  8. Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:  
  9. !!!!!  
  10. Success rate is 100 percent (5/5), round-trip min/avg/max = 8/52/124 ms 

查看R2 的路由表:

  1. R2#show ip route  
  2. Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP  
  3.        D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area  
  4.        N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2  
  5.        E1 – OSPF external type 1, E2 – OSPF external type 2  
  6.        i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2  
  7.        ia – IS-IS inter area, * – candidate default, U – per-user static route  
  8.        o – ODR, P – periodic downloaded static route  
  9.  
  10. Gateway of last resort is not set  
  11.  
  12.      10.0.0.0/24 is subnetted, 4 subnets  
  13. C       10.1.3.0 is directly connected, Loopback3  
  14. C       10.1.2.0 is directly connected, Loopback2  
  15. C       10.1.1.0 is directly connected, Loopback1  
  16. C       10.1.0.0 is directly connected, Loopback0  
  17. C    192.168.1.0/24 is directly connected, Serial0/0 

#p#

發現R2 并沒有學習到R3 的172.16.0.0 網絡, R1 通過S0/0 接口學習到R3 宣告的172.16.0.0網絡,因為R1 s0/0 接口的水平分割機制導致R1 不會再由這個接口S0/0 發布出去,所以R2無法學習到R3 宣告的網絡,同理,R3 也無法學習到R2 宣告的網絡。

對幀中繼配置進行修正,使用broadcast 參數:

  1. R1(config)#router eigrp 100  
  2. R1(config-router)#no neighbor 192.168.1.2 s0/0 //取消手工指定鄰居  
  3. *Mar  1 00:42:29.807: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0) is down:  
  4. R1(config-router)#no neighbor 192.168.1.3 s0/0  
  5. *Mar  1 00:42:32.623: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.3 (Serial0/0) is down:  
  6. R1(config-router)#exit  
  7. R1(config)#int s0/0  
  8. R1(config-if)#no fram map ip 192.168.1.2 102 //取消之前不帶broadcast 參數的靜態映射  
  9. R1(config-if)#no fram map ip 192.168.1.3 103  
  10. R1(config-if)#frame map ip 192.168.1.2 102 broadcast  
  11. R1(config-if)#frame map ip 192.168.1.3 103 broadcast  
  12. R1(config-if)#end  
  13.  
  14. R2(config)#router eigrp 100  
  15. R2(config-router)#no  neighbor 192.168.1.1 Serial0/0  
  16. R2(config-router)#int s0/0  
  17. R2(config-if)#no frame-relay map ip 192.168.1.1 201  
  18. R2(config-if)# frame-relay map ip 192.168.1.1 201 broadcast  
  19.  
  20. R3(config)#router eigrp 100  
  21. R3(config-router)#no neighbor 192.168.1.1 Serial0/0  
  22. R3(config-router)#int s0/0  
  23. R3(config-if)#no  
  24. *Mar  1 00:47:58.943: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.1 (Serial0/0) is up: new adjacency  
  25. R3(config-if)#no frame-relay map ip 192.168.1.1 301  
  26. R3(config-if)#frame-relay map ip 192.168.1.1 301 broadcast  
  27. R3(config-if)#end 

驗證結果:

可以看到添加了broadcast 后,幀中繼可以正常的傳遞組播數據了,R1 就可以和R2 和R3 建立鄰居關系并正常學習到路由。

  1. R1#show ip eigrp neighbors  
  2. IP-EIGRP neighbors for process 100  
  3. H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq  
  4.                                             (sec)         (ms)       Cnt Num  
  5. 1   192.168.1.3             Se0/0            178 00:00:03  906  5000  0  7  
  6. 0   192.168.1.2             Se0/0            178 00:01:57 1040  5000  0  6  
  7. R1#show ip route eigrp 100  
  8.      172.16.0.0/24 is subnetted, 4 subnets  
  9. D       172.16.0.0 [90/2297856] via 192.168.1.3, 00:00:53, Serial0/0  
  10. D       172.16.1.0 [90/2297856] via 192.168.1.3, 00:00:53, Serial0/0  
  11. D       172.16.2.0 [90/2297856] via 192.168.1.3, 00:00:53, Serial0/0  
  12. D       172.16.3.0 [90/2297856] via 192.168.1.3, 00:00:53, Serial0/0  
  13.      10.0.0.0/24 is subnetted, 4 subnets  
  14. D       10.1.3.0 [90/2297856] via 192.168.1.2, 00:02:46, Serial0/0  
  15. D       10.1.2.0 [90/2297856] via 192.168.1.2, 00:02:46, Serial0/0  
  16. D       10.1.1.0 [90/2297856] via 192.168.1.2, 00:02:46, Serial0/0  
  17. D       10.1.0.0 [90/2297856] via 192.168.1.2, 00:02:46, Serial0/0 

查看R3 的路由表,發現R3 并沒有學習到R2 的網絡,這是因為R1 默認情況下接口有水平。

  1. R3#show ip route  
  2. Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP  
  3.        D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area  
  4.        N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2  
  5.        E1 – OSPF external type 1, E2 – OSPF external type 2  
  6.        i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2  
  7.        ia – IS-IS inter area, * – candidate default, U – per-user static route  
  8.        o – ODR, P – periodic downloaded static route  
  9.  
  10. Gateway of last resort is not set  
  11.  
  12.      172.16.0.0/24 is subnetted, 4 subnets  
  13. C       172.16.0.0 is directly connected, Loopback0  
  14. C       172.16.1.0 is directly connected, Loopback1  
  15. C       172.16.2.0 is directly connected, Loopback2  
  16. C       172.16.3.0 is directly connected, Loopback3  
  17. C    192.168.1.0/24 is directly connected, Serial0/0 

將R1 接口的水平分割關閉:

  1. R1(config)#interface serial 0/0  
  2. R1(config-if)#no ip split-horizon eigrp 100  
  3. R1(config-if)#end 

當R1 的水平分割關閉后,EIGRP 進程會出現相應提示:

  1. *Mar  1 00:52:25.055: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.3 (Serial0/0) is resync: split horizon changed  
  2. *Mar  1 00:52:25.055: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.1.2 (Serial0/0) is resync: split horizon changed 

查看R1 接口S0/0 的情況:

  1. R1#show ip int s0/0 | include Split  
  2.   Split horizon is disabled 

查看R2 的路由表:

  1. R2#show ip route eigrp 100  
  2.      172.16.0.0/24 is subnetted, 4 subnets  
  3. D       172.16.0.0 [90/2809856] via 192.168.1.1, 00:08:03, Serial0/0  
  4. D       172.16.1.0 [90/2809856] via 192.168.1.1, 00:08:03, Serial0/0  
  5. D       172.16.2.0 [90/2809856] via 192.168.1.1, 00:08:03, Serial0/0  
  6. D       172.16.3.0 [90/2809856] via 192.168.1.1, 00:08:03, Serial0/0 

雖然R2 路由表中有172.16.2.0/24 網絡,但R2 并沒有ping 通,這是什么原因?

因為R3 的串行口幀中繼配置時,只做了IP 192.168.1.1 和DLCI 號的對應,沒有做IP 192。168.1.2 和DLCI 號的映射,所以R2 ping 172.16.2.1 時,采用的源地址為192.168.1.2,通過路由表發現目的地址172.16.2.1 具有符合的條目,轉發接口為192.168.1.1,于是由R1 轉發到R3,R3 在回包過程時,源地址為172.16.2.1,而目標地址為192.168.1.2,但它不知道這個地址怎么轉發于是就丟棄。

  1. R3(config)#int s0/0  
  2. R3(config-if)#frame-relay map ip 192.168.1.2 301 broadcast  
  3. R2(config-if)#end  
  4.  
  5. R2(config)#int s0/0  
  6. R2(config-if)#frame-relay map ip 192.168.1.3 201 broadcast  
  7. R2(config-if)#end 

驗證結果:

  1. R2#ping 172.16.1.1  
  2.  
  3. Type escape sequence to abort.  
  4. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:  
  5. !!!!!  
  6. Success rate is 100 percent (5/5), round-trip min/avg/max = 44/88/160 ms 

 幀中繼的配置結束了,驗證結果大家已經清楚地看到,所以如上所述內容是一個很有說明力度的實例,對于讀者了解EIGRP路由協議的配置是很有幫助的。更多內容請讀者閱讀:

幀中繼交換機和路由器模擬配置CCNP:EIGRP帶寬實例配置解析

責任編輯:佚名 來源: 咦哇噢博客
相關推薦

2011-04-13 11:27:28

EIGRP路由

2011-08-16 11:37:27

EIGRP帶寬

2010-06-11 17:09:27

EIGRP路由協議

2010-06-11 17:12:28

EIGRP路由協議

2010-08-06 10:55:50

配置RIP路由協議

2009-11-11 16:49:41

路由選擇協議

2010-06-21 14:46:30

EIGRP路由協議

2010-06-11 17:45:09

路由協議IGRPEIGRP

2011-04-13 13:14:41

EIGRP STUB

2010-06-25 15:03:54

路由選擇協議

2013-05-30 10:42:53

路由技術路由表網絡管理

2011-08-11 15:14:30

2011-09-15 13:56:35

2010-06-17 23:13:10

路由信息協議

2009-12-02 10:34:04

華為路由器配置實例

2011-08-03 09:18:39

RIP路由協議RIP

2009-11-11 17:02:44

MPLS路由協議

2010-07-08 14:51:34

路由選擇協議

2009-09-10 16:14:00

路由器的故障

2011-08-16 10:50:35

DHCP路由器配置
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 亚洲成人免费观看 | 日韩毛片播放 | 久草视频网站 | 狠狠综合久久av一区二区小说 | 亚洲社区在线 | 亚洲伊人久久综合 | 99精品免费久久久久久久久日本 | 亚洲图片一区二区三区 | 中文字幕一区在线 | 久久亚洲91 | www.色综合 | 国产美女视频黄 | www.青青草| 欧美aⅴ在线观看 | 羞羞视频在线网站观看 | 日韩高清国产一区在线 | 97av在线| 国产欧美在线 | 亚洲夜夜爽 | 国产农村一级片 | 国产永久免费 | 日韩高清中文字幕 | 91精品久久久久久久 | 97精品久久 | 99re免费| 91精品国产综合久久久久久丝袜 | 国产二区三区 | a级片播放 | 亚洲毛片在线 | 国产精品久久久久无码av | 欧美 日韩 在线播放 | 成人欧美一区二区三区在线观看 | 国产一区二区小视频 | 国产免费一区二区 | 国产精品大片 | 久久国内精品 | 欧美在线小视频 | 九九热在线免费观看 | 亚洲天堂av网 | 91在线精品一区二区 | 超碰97av|