免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1004 | 回复: 0
打印 上一主题 下一主题

EIGRP基本配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-12 20:17 |只看该作者 |倒序浏览

一。EIGRP基本配置,拓朴如下:

二。配置命令:
R1(config-router)#?
Router configuration commands:
  address-family       Enter Address Family command mode
  auto-summary         Enable automatic network number summarization  
  default              Set a command to its defaults
  default-information  Control distribution of default information
  default-metric       Set metric of redistributed routes
  distance             Define an administrative distance
  distribute-list      Filter networks in routing updates
  eigrp                EIGRP specific commands
  exit                 Exit from routing protocol configuration mode
  help                 Description of the interactive help system
  maximum-paths        Forward packets over multiple paths
  metric               Modify EIGRP routing metrics and parameters
  neighbor             Specify a neighbor router
  network              Enable routing on an IP network
  no                   Negate a command or set its defaults
  offset-list          Add or subtract offset from RIP metrics
  passive-interface    Suppress routing updates on an interface
  redistribute         Redistribute information from another routing protocol
  timers               Adjust routing timers
  traffic-share        How to compute traffic share over alternate paths
  variance             Control load balancing variance
以上是所有EIGRP路由模式下的配置命令

三。EIGRP配置与参数分析
(1)在R2的启用rotuer EIGRP 10,而在R1上不启用EIGRP,会有怎么样的结果,能收到OSPF邻居吗?
R2#sh ip ei nei
IP-EIGRP neighbors for process 10  由此可以看出,我们并没有看到邻居,但大家注意到没有,R1 PING R2是通的
R1#ping 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/88/196 ms
这是因为,我们PING命令是用采用的单播发送,而EIGRP Hello 包发送是采用的224.0.0.10.所以EIGRP 邻居的建立与我PING无关。

(2)EIGRP邻居建立的过程
R2#clea ip ei 10 neighbors
*Apr 12 19:36:27.215: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 12.1.1.1 (Serial1/0) is up: new adjacency
*Apr 12 19:36:27.223: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0
*Apr 12 19:36:29.227: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0
*Apr 12 19:36:29.947: IP-EIGRP(Default-IP-Routing-Table:10): Processing incoming UPDATE packet
*Apr 12 19:36:32.231: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0

(3)在R2查看show ip eigrp neighbor
R2#sh ip ei nei
IP-EIGRP neighbors for process 10
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
1   23.1.1.3                Se1/1             11 00:00:26  104   624  0  8
0   12.1.1.1                Se1/0             14 00:00:28  101   606  0  9
现在这里只有二个邻居,而我们在R2上启用的lookback 0 2.2.2.2 为什么没有在邻居表中的呢?这时我们可想想,EIGRP 邻居建立的过程,当我R2环回口发出去了hello包,但我在环回口上并没有收到邻居的hello包,所以在R2的邻居表中,并不会存在2.2.2.0的邻居。

(4)在看R2的拓朴表
R2#sh ip eigrp topology
IP-EIGRP Topology Table for AS(10)/ID(12.1.1.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status
P 1.0.0.0/8, 1 successors, FD is 2297856
        via 12.1.1.1 (2297856/128256), Serial1/0
P 2.0.0.0/8, 1 successors, FD is 128256
        via Summary (128256/0), Null0
P 2.2.2.0/24, 1 successors, FD is 128256
        via Connected, Loopback0
P 3.0.0.0/8, 1 successors, FD is 2297856
        via 23.1.1.3 (2297856/128256), Serial1/1
P 12.0.0.0/8, 1 successors, FD is 2169856
        via Summary (2169856/0), Null0
P 12.1.1.0/24, 1 successors, FD is 2169856
        via Connected, Serial1/0
P 23.0.0.0/8, 1 successors, FD is 2169856
        via Summary (2169856/0), Null0
P 23.1.1.0/24, 1 successors, FD is 2169856
        via Connected, Serial1/1

(5)R2的路由表
R2#sh ip route
Gateway of last resort is n


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/35811/showart_276671.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP