|
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 |
l 在R1、R2上配置接口IP地址,并开启环回接口0。
l 在R1、R2上运行EIGRP协议,AS号为90。
l 验证建立EGIRP的邻居需要相同对同AS号和相同的K值。
1)在R1、R2上配置接口的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)在R1、R2上开启EIGRP的协议,AS号为90
(config)#router eigrp 90 //开启EIGRP协议,AS为90//
(config-router)#no auto-summary //关闭自动汇总//
(config-router)#network x.x.x.x x.x.x.x //宣告接口网段//
3)当对R1的K值做修改,R2的K值为默认值
(config)#router eigrp 90
(config-router)#metric weights 0 2 0 2 0 0 //将K值改为K1=2、K2=0、K3=2、K4=0、K5=0//
1) 当R1、R2的AS号相同时,查看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) 当R1的AS号为90,R2的AS号为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) 当R1和R2的K值都为默认值,查看邻居能否建立:
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运行EIGRP的K值为多少:
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
/上面现实的是默认下EIGRP的K值为K1=1, K2=0, K3=1, K4=0, K5=0/
4) 将R1的K值修改,R2的K值为默认值,查看邻居是否能建立成功:
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值不匹配导致邻居不能建立/
查看此时R1的K值修改为多少:
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/
1) EIGRP的邻居建立有三个条件:
§ AS号要相同
§ K值要相同
§ 若有认证的话,密码要相同
2) 在修改EIGRP的K值方法:
(config)#router eigrp 90
R1(config-router)#metric weights 0 2 0 2 0 0
/上面显示的第一个0为默认值,它表示的是数据量的等级,范围为0-7,值越大等级越高。
K值修改为K1=2、K2=0、K3=2、K4=0、K5=0,但默认为K1=1、K2=0、K3=1、K4=0、K5=0/
-----------------------------------------------------------------------------------------
SPOTO 我们共创未来
您的朋友 周俊杰(Jay)
Email:zhoujj@spoto.net
新浪微博:http://weibo.com/zhoujj0130
新浪博客:http://blog.sina.com.cn/zhoujj0130
持续付出不亚于任何人的努力
-----------------------------------------------------------------------------------------
|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )
GMT+8, 2024-4-27 09:40 , Processed in 0.059530 second(s), 18 queries , Gzip On.