1. EIGRP基本试验
拓扑图:
试验要求:
这是我们学习NP的第一个路由试验,首先要求全网运行EIGRP路由协议,能够实现全网的互通,并且掌握主要的几种show命令的使用。下面做试验了,哈!简单的配置我们在NA里就学过了,这里就不多说了。
主要的配置命令:
R1(config)#router eigrp 1
R1(config-router)#net 12.1.1 .0 0.0.0.255
R1(config-router)#net 1.1.1 .0 0.0.0.255
R2(config)#router eigrp 1
R2config-route)#network 12.1.1 .0 0.0.0.255
R2config-route)#network 23.1.1 .0 0.0.0.255
R3config)#router eigrp 1
R3onfig-route)#network 3.3.3 .0 0.0.0.255
R3onfig-route)#network 23.1.1 .0 0.0.0.255
配置完之后,查看路由表是否学习到路由
R1#show ip route eigrp
1.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 1.0.0 .0/8 is a summary, 00:21:45, Null0
D 3.0.0 .0/8 [90/2809856] vi a 12.1.1 .2, 00:17:10, Serial0/0
D 23.0.0 .0/8 [90/2681856] vi a 12.1.1 .2, 00:18:45, Serial0/0
12.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 12.0.0 .0/8 is a summary, 00:21:45, Null0
R2#show ip route eigrp
D 1.0.0 .0/8 [90/2297856] vi a 12.1.1 .1, 00:20:58, Serial0/0
D 3.0.0 .0/8 [90/2297856] vi a 23.1.1 .2, 00:19:06, Serial0/1
23.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 23.0.0 .0/8 is a summary, 00:20:41, Null0
12.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 12.0.0 .0/8 is a summary, 00:20:41, Null0
R3#show ip route eigrp
D 1.0.0 .0/8 [90/2809856] vi a 23.1.1 .1, 00:20:26, Serial0/0
3.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 3.0.0 .0/8 is a summary, 00:20:04, Null0
23.0.0 .0/8 is variably subnetted, 2 subnets, 2 masks
D 23.0.0 .0/8 is a summary, 00:20:04, Null0
D 12.0.0 .0/8 [90/2681856] vi a 23.1.1 .1, 00:20:26, Serial0/0
EIGRP是无类路由协议,但是路由表中发现是/8位的主类路由,为什么呢?
答:因为EIGRP默认在网络边界进行自动汇总,我们需要关闭此特性。
分别在R1/R2/R3
R1(config)#router eigrp 1
R1(config-route)#no auto-summary
注意:EIGRP配置注意事项
1. 自治系统号(AS)一定要匹配
2. EIGRP可以直接宣告主类网络,但是最好我们通过通配符掩码进行精确匹配。使用通配符掩码,可以很好的控制哪一些接口加入到EIGRP的进程中工作。
3. 关闭自动汇总。
R1#show ip eigrp topology
IP-EIGRP Topology Table for AS(1)/ID( 1.1.1 .1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
路由状态 |
P 1.1.1 .0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 3.3.3 .0/24, 1 successors, FD is 2809856
vi a 12.1.1 .2 (2809856/2297856), Serial0/0
P 12.1.1 .0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
P 23.1.1 .0/24, 1 successors, FD is 2681856
|
本文出自 “路是脚踏出来的,历史..” 博客,谢绝转载!