立即注册 登录
雏鹰部落 返回首页

子杰的个人空间 https://bbs.spoto.net/?131778 [收藏] [复制] [分享] [RSS]

日志

EIGRP的邻居建立条件配置案例

已有 428 次阅读2013-2-20 23:23

1     案例配置拓扑        

            

2     IP地址规划

 

FastEthernet0/0

Loopback0

R1

192.168.12.1/24

1.1.1.1/24

R2

192.168.12.2/24

2.2.2.2/24

3     案例配置需求

l  R1R2上配置接口IP地址,并开启环回接口0

l  R1R2上运行EIGRP协议,AS号为90

l  验证建立EGIRP的邻居需要相同对同AS号和相同的K值。

4     案例配置思路

1)R1R2上配置接口的IP地址,并开启环回接口

(config)#interface fastethernet 0/0

(config-if)#ip address x.x.x.x x.x.x.x             

(config-if)#no shutdown

(config)#interface loopback 0

(config-if)#ip address x.x.x.x x.x.x.x

2)R1R2上开启EIGRP的协议,AS号为90

(config)#router eigrp 90                   //开启EIGRP协议,AS90//

(config-router)#no auto-summary         //关闭自动汇总//

(config-router)#network x.x.x.x x.x.x.x      //宣告接口网段//

   3)当对R1K值做修改,R2K值为默认值

(config)#router eigrp 90

(config-router)#metric weights 0 2 0 2 0 0  //K值改为K1=2K2=0K3=2K4=0K5=0//

 

5     案例检验结果

   1)  当R1R2AS号相同时,查看EIGRP的邻居是否能建立:

R1#show ip eigrp neighbors

IP-EIGRP neighbors for process 90

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

0   192.168.12.2            Fa0/0             13 00:42:12   20   200  0  3

/上面显示R1能与R2建立EIGRP的邻居/

   2)  当R1AS号为90R2AS号为100,则查看下邻居是否能建立成功:

R1#show ip eigrp neighbors

IP-EIGRP neighbors for process 90

 

R2#show ip eigrp neighbors

IP-EIGRP neighbors for process 100

/上面显示的AS号不相同,所以EIGRP的邻居不能建立成功/

   3)  当R1R2K值都为默认值,查看邻居能否建立:

R1#show ip eigrp neighbors

IP-EIGRP neighbors for process 90

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

0   192.168.12.2            Fa0/0             13 00:42:12   20   200  0  3

/上面显示R1能与R2建立EIGRP的邻居/

          查看默认下R1运行EIGRPK值为多少:

R1#show ip protocols

Routing Protocol is "eigrp 90"

  Outgoing ** filter list for all interfaces is not set

  Incoming ** filter list for all interfaces is not set

  Default networks flagged in outgoing **s

  Default networks accepted from incoming **s

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 90

  EIGRP NSF-aware route hold timer is 240s

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:

    1.1.1.0/24

    192.168.12.0

  Routing Information Sources:

    Gateway         Distance      Last **

    192.168.12.2          90      00:48:44

  Distance: internal 90 external 170

/上面现实的是默认下EIGRPK值为K1=1, K2=0, K3=1, K4=0, K5=0/

   4)  将R1K值修改,R2K值为默认值,查看邻居是否能建立成功:

IP-EIGRP neighbors for process 90

R1#

*Mar  1 01:02:28.043: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 192.168.12.2 (FastEthernet0/0) is down:

Interface Goodbye received

R1#

*Mar  1 01:02:32.351: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 90: Neighbor 192.168.12.2 (FastEthernet0/0) is down:

 K-value mismatch

/上面显示邻居不能建立,且会显示K值不匹配导致邻居不能建立/

 

查看此时R1K值修改为多少:

 

R1#show ip protocols

 

 

 

Routing Protocol is "eigrp 90"

  

 

 

  Outgoing ** filter list for all interfaces is not set

 

  Incoming ** filter list for all interfaces is not set

 

 

  Default networks flagged in outgoing **s

 

  

  Default networks accepted from incoming **s

 

 

  EIGRP metric weight K1=2, K2=0, K3=2, K4=0, K5=0

 

 

  EIGRP maximum hopcount 100

 

 

  EIGRP maximum metric variance 1

 

 

  Redistributing: eigrp 90

 

 

  EIGRP NSF-aware route hold timer is 240s

 

 

  Automatic network summarization is not in effect

 

 

  Maximum path: 4

 

 

  Routing for Networks:

 

 

   1.1.1.0/24

   

 

   192.168.12.0

 

 

 Routing Information Sources:

 

 

 

    Gateway         Distance      Last **

   

 

 

    192.168.12.2          90      00:00:04

 

 

  Distance: internal 90 external 170

 

 

/上面显示K值修改为K1=2, K2=0, K3=2, K4=0, K5=0/

 

 

6     案例配置文件

R1:

enable
conf t
hostname R1
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.12.1 255.255.255.0
 no shutdown
 exit
!
router eigrp 90
 network 1.1.1.0 0.0.0.255
 network 192.168.12.0
 no auto-summary
!
end

 

R2:

enable
conf t
hostname R2
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 no shutdown
 exit
router eigrp 90
 network 2.2.2.0 0.0.0.255
 network 192.168.12.0
 no auto-summary
!
end

7     案例总结及其它

1)     EIGRP的邻居建立有三个条件:

§   AS号要相同

§   K值要相同

§   若有认证的话,密码要相同

 

2)     在修改EIGRPK值方法:

(config)#router eigrp 90

R1(config-router)#metric weights 0 2 0 2 0 0

/上面显示的第一个0为默认值,它表示的是数据量的等级,范围为0-7,值越大等级越高。

K值修改为K1=2K2=0K3=2K4=0K5=0,但默认为K1=1K2=0K3=1K4=0K5=0/

 

 

 

 

 

 

 

 

 

-----------------------------------------------------------------------------------------

SPOTO 我们共创未来


您的朋友 周俊杰(Jay)
 

Email:zhoujj@spoto.net
新浪微博:http://weibo.com/zhoujj0130
新浪博客:http://blog.sina.com.cn/zhoujj0130

持续付出不亚于任何人的努力
-----------------------------------------------------------------------------------------

 

 


路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-27 09:40 , Processed in 0.059530 second(s), 18 queries , Gzip On.

返回顶部