文档库 最新最全的文档下载
当前位置:文档库 › EIGRP 路由汇总

EIGRP 路由汇总

EIGRP 路由汇总
EIGRP 路由汇总

Manually Summarizing EIGRP Routes 实验目的:

1、理解EIGRP的自动汇总的缺点。

2、掌握EIGRP的手工自动总结的配置方法。

实验拓扑图:

R1、R2、R3、R4的基本路由配置如下:

R1(config-line)#inter lo 0

R1(config-if)#ip add 10.1.0.1 255.255.255.0

R1(config-if)#inter lo 1

R1(config-if)#ip add 10.1.1.1 255.255.255.0

R1(config-if)#inter lo 2

R1(config-if)#ip add 10.1.2.1 255.255.255.0

R1(config-if)#inter lo 3

R1(config-if)#ip add 10.1.3.1 255.255.255.0

R1(config-if)#inter f0/0

R1(config-if)#ip add 172.16.1.1 255.255.255.252

R2(config-line)#inter f0/1

R2(config-if)#ip add 172.16.1.2 255.255.255.252

R2(config-if)#inter f0/0

R2(config-if)#ip add 172.16.1.5 255.255.255.252

R3(config-line)#inter lo 0

R3(config-if)#ip add 192.168.0.1 255.255.255.0

R3(config-if)#inte lo 1

R3(config-if)#ip add 192.168.1.1 255.255.255.0

R3(config-if)#inter lo 2

R3(config-if)#ip add 192.168.2.1 255.255.255.0

R3(config-if)#inter lo 3

R3(config-if)#ip add 192.168.3.1 255.255.255.0

R3(config-if)#inter f0/1

R3(config-if)#ip add 172.16.1.6 255.255.255.252

R3(config-if)#inter f0/0

R3(config-if)#ip add 172.16.1.9 255.255.255.252

R4(config-line)#inter lo 0

R4(config-if)#ip add 10.1.16.1 255.255.255.0

R4(config-if)#inter lo 1

R4(config-if)#ip add 10.1.17.1 255.255.255.0

R4(config-if)#inter lo 2

R4(config-if)#ip add 10.1.18.1 255.255.255.0

R4(config-if)#inter lo 3

R4(config-if)#ip add 10.1.19.1 255.255.255.0

R4(config-if)#inter f0/1

R4(config-if)#ip add 172.16.1.10 255.255.255.252

配置各台路由器的EIGRP协议,并且不关闭自动总结:

R1(config-if)#router eigrp 50

R1(config-router)#net 10.1.0.0

R1(config-router)#net 172.16.1.0

R2(config)#router eigrp 50

R2(config-router)#net 172.16.1.0

R3(config-if)#router eigrp 50

R3(config-router)#net 172.16.1.0

R3(config-router)#net 192.168.0.0 0.0.0.255

R3(config-router)#net 192.168.1.0 0.0.0.255

R3(config-router)#net 192.168.2.0 0.0.0.255

R3(config-router)#net 192.168.3.0 0.0.0.255

R4(config-router)#router eigrp 50

R4(config-router)#net 10.1.0.0

R4(config-router)#net 172.16.1.0

在R2上使用ping测试网络路由,会发现R2路由器无法ping通路由器R4所连接的10.1.X.0/24网络子网。如下所示:

R2(config-router)#do ping 10.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 76/138/264 ms

R2(config-router)#do ping 10.1.17.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.17.1, timeout is 2 seconds:

U.U.U

Success rate is 0 percent (0/5)

查看R2的路由表:

R2(config-router)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets

D 172.16.1.8 [90/307200] via 172.16.1.6, 00:09:35, FastEthernet0/0

C 172.16.1.4 is directly connected, FastEthernet0/0

C 172.16.1.0 is directly connected, FastEthernet0/1

D 10.0.0.0/8 [90/409600] via 172.16.1.1, 00:02:27, FastEthernet0/1

D 192.168.0.0/24 [90/409600] via 172.16.1.6, 00:08:43, FastEthernet0/0

D 192.168.1.0/24 [90/409600] via 172.16.1.6, 00:08:36, FastEthernet0/0

D 192.168.2.0/24 [90/409600] via 172.16.1.6, 00:08:31, FastEthernet0/0

D 192.168.3.0/24 [90/409600] via 172.16.1.6, 00:08:27, FastEthernet0/0

查看R2路由器的拓扑数据库:

R2(config-router)#do show ip eigrp topology all-links

IP-EIGRP Topology Table for AS(50)/ID(172.16.1.5)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.0.0.0/8, 1 successors, FD is 409600, serno 3

via 172.16.1.1 (409600/128256), FastEthernet0/1

via 172.16.1.6 (435200/409600), FastEthernet0/0

P 192.168.0.0/24, 1 successors, FD is 409600, serno 5

via 172.16.1.6 (409600/128256), FastEthernet0/0

P 192.168.1.0/24, 1 successors, FD is 409600, serno 6

via 172.16.1.6 (409600/128256), FastEthernet0/0

P 192.168.2.0/24, 1 successors, FD is 409600, serno 7

via 172.16.1.6 (409600/128256), FastEthernet0/0

P 192.168.3.0/24, 1 successors, FD is 409600, serno 8

via 172.16.1.6 (409600/128256), FastEthernet0/0

P 172.16.1.8/30, 1 successors, FD is 307200, serno 4

via 172.16.1.6 (307200/281600), FastEthernet0/0

P 172.16.1.4/30, 1 successors, FD is 281600, serno 1

via Connected, FastEthernet0/0

P 172.16.1.0/30, 1 successors, FD is 281600, serno 2

via Connected, FastEthernet0/1

导致R2无法ping路由器R4所连接的10.1.X.0/24的网络主要原因是:R1本身属于主类的边界,其会将本地路由表中的子网向主类网络自动汇总。而R4也属于主类的界,也会与R1做出相同的动作。因此R2会从不同的接口,收到相同的汇总路由,即10.0.0.0/8网络路由。由于R2在比较了两条路由的可行距离后,选择了较小的FD值的路由,即R1通告的10.0.0.0/8汇总路由。而忽略了另外一个接口收到汇总路由。其实真正的原因,并不是路由选择出错,而是自动汇总不能做到精确的控制原因导致的。

为了解决汇总问题,需要在R1和R4上关闭自动汇总,而采用手工汇总。配置如下:

R1(config)#router eigrp 50

R1(config-router)#no auto-summary

R1(config-router)#inter f0/0

R1(config-if)#ip summary-address eigrp 50 10.1.0.0 255.255.252.0

R4(config)#router eigrp 50

R4(config-router)#no auto-summary

R4(config-router)#inter f0/1

R4(config-if)#ip summary-address eigrp 50 10.1.16.0 255.255.252.0

再次查看R2路由表:

R2(config-router)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets

D 172.16.1.8 [90/307200] via 172.16.1.6, 00:19:35, FastEthernet0/0 C 172.16.1.4 is directly connected, FastEthernet0/0

C 172.16.1.0 is directly connected, FastEthernet0/1

10.0.0.0/22 is subnetted, 2 subnets

D 10.1.0.0 [90/409600] via 172.16.1.1, 00:03:04, FastEthernet0/1

D 10.1.16.0 [90/435200] via 172.16.1.6, 00:01:13, FastEthernet0/0 D 192.168.0.0/24 [90/409600] via 172.16.1.6, 00:18:43, FastEthernet0/0 D 192.168.1.0/24 [90/409600] via 172.16.1.6, 00:18:35, FastEthernet0/0 D 192.168.2.0/24 [90/409600] via 172.16.1.6, 00:18:31, FastEthernet0/0 D 192.168.3.0/24 [90/409600] via 172.16.1.6, 00:18:27, FastEthernet0/0

再次使用ping命令确认网络可达性:

R2(config-router)#do ping 10.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 72/116/188 ms R2(config-router)#do ping 10.1.17.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.17.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 80/164/316 ms R2(config-router)#do ping 10.1.16.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.16.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 88/184/280 ms

R2(config-router)#do ping 10.1.0.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.0.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 48/84/120 ms

再次查看R2和R4的路由表:

R2(config-router)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets

D 172.16.1.8 [90/307200] via 172.16.1.6, 00:23:40, FastEthernet0/0

C 172.16.1.4 is directly connected, FastEthernet0/0

C 172.16.1.0 is directly connected, FastEthernet0/1

10.0.0.0/22 is subnetted, 2 subnets

D 10.1.0.0 [90/409600] via 172.16.1.1, 00:07:10, FastEthernet0/1

D 10.1.16.0 [90/435200] via 172.16.1.6, 00:05:19, FastEthernet0/0

D 192.168.0.0/24 [90/409600] via 172.16.1.6, 00:22:49, FastEthernet0/0 D 192.168.1.0/24 [90/409600] via 172.16.1.6, 00:22:41, FastEthernet0/0 D 192.168.2.0/24 [90/409600] via 172.16.1.6, 00:22:37, FastEthernet0/0 D 192.168.3.0/24 [90/409600] via 172.16.1.6, 00:22:32, FastEthernet0/0 R4(config-router)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks

C 172.16.1.8/30 is directly connected, FastEthernet0/1

D 172.16.1.4/30 [90/307200] via 172.16.1.9, 00:00:39, FastEthernet0/1 D 172.16.0.0/16 is a summary, 00:00:39, Null0

D 172.16.1.0/30 [90/332800] via 172.16.1.9, 00:00:39, FastEthernet0/1

10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks

D 10.0.0.0/8 is a summary, 00:00:39, Null0

C 10.1.19.0/24 is directly connected, Loopback3

C 10.1.18.0/24 is directly connected, Loopback2

C 10.1.17.0/24 is directly connected, Loopback1

C 10.1.16.0/24 is directly connected, Loopback0

D 192.168.0.0/24 [90/409600] via 172.16.1.9, 00:00:39, FastEthernet0/1

D 192.168.1.0/24 [90/409600] via 172.16.1.9, 00:00:39, FastEthernet0/1

D 192.168.2.0/24 [90/409600] via 172.16.1.9, 00:00:39, FastEthernet0/1

D 192.168.3.0/24 [90/409600] via 172.16.1.9, 00:00:39, FastEthernet0/1

为了能够有效的减少路由表的大小,还可以通过EIGRP对192.168.X.0/24的C类网络路由进行手工路由汇总,具体配置如下:

R3(config)# router eigrp 50

R3(config-router)#no auto-summary

R3(config-router)#inter f0/0

R3(config-if)#ip summary-address eigrp 50 192.168.0.0 255.255.252.0

R3(config-if)#inter f0/1

R3(config-if)#ip summary-address eigrp 50 192.168.0.0 255.255.252.0

查看R4和R2的路由表:

R2(config-router)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets

D 172.16.1.8 [90/307200] via 172.16.1.6, 00:28:47, FastEthernet0/0

C 172.16.1.4 is directly connected, FastEthernet0/0

C 172.16.1.0 is directly connected, FastEthernet0/1

10.0.0.0/22 is subnetted, 2 subnets

D 10.1.0.0 [90/409600] via 172.16.1.1, 00:12:17, FastEthernet0/1

D 10.1.16.0 [90/435200] via 172.16.1.6, 00:10:26, FastEthernet0/0

D 192.168.0.0/22 [90/409600] via 172.16.1.6, 00:02:43, FastEthernet0/0

R4(config-if)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets

C 172.16.1.8 is directly connected, FastEthernet0/1

D 172.16.1.4 [90/307200] via 172.16.1.9, 00:20:00, FastEthernet0/1

D 172.16.1.0 [90/332800] via 172.16.1.9, 00:20:00, FastEthernet0/1

10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks

D 10.1.0.0/22 [90/460800] via 172.16.1.9, 00:10:37, FastEthernet0/1

C 10.1.19.0/24 is directly connected, Loopback3

C 10.1.18.0/24 is directly connected, Loopback2

C 10.1.17.0/24 is directly connected, Loopback1

C 10.1.16.0/24 is directly connected, Loopback0

D 10.1.16.0/22 is a summary, 00:08:47, Null0

D 192.168.0.0/22 [90/409600] via 172.16.1.9, 00:01:19, FastEthernet0/1

使用ping命令确认路由有效性:

R2(config-router)#do ping 192.168.0.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 68/84/96 ms

R4(config-if)#do ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 48/115/228 ms

通过本实验可以看出,虽然EIGRP的自动汇总能够为网络配置带来便捷,但是其依赖于IP 子网的规划。如果遇到糟糕的子网规划,则需要小心使用自动特性。

EIGRP和RIP单播实验

EIGRP和RIP单播实验 试验拓扑图如下: 根据拓扑图,做好相应基本配置并启用EIGRP协议 一 RA(config)#router eigrp 99 RA(config-router)#passive-int s1/0 *Aug 8 03:25:24.827: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 99: Neighbor 12.1.1.2 (Seria l1/0) is down: interface passive RA#show ip eig nei IP-EIGRP neighbors for process 99 将RTA的s1/0接口被动掉并查看邻居表,发现此时邻居表为空,即A丢失与B的邻居关系,为了得到更详细的信息,查看一下Hello包的发送情况RA#debug eigrp packets EIGRP Packets debugging is on (UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUE RY, SIAREPLY) RA# *Aug 8 03:27:51.179: EIGRP: Sending HELLO on Loopback0 *Aug 8 03:27:51.179: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Aug 8 03:27:51.179: EIGRP: Received HELLO on Loopback0 nbr 1.1.1.1 *Aug 8 03:27:51.179: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 *Aug 8 03:27:51.179: EIGRP: Packet from ourselves ignored RA# *Aug 8 03:27:55.747: EIGRP: Sending HELLO on Loopback0 *Aug 8 03:27:55.747: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 *Aug 8 03:27:55.747: EIGRP: Received HELLO on Loopback0 nbr 1.1.1.1 *Aug 8 03:27:55.747: AS 99, Flags 0x0, Seq 0/0 idbQ 0/0 *Aug 8 03:27:55.747: EIGRP: Packet from ourselves ignored 发现此时RTA在接口s1/0上既不能发送也不能接受Hello包,测试一下RTA到RTB环回接口的连通性 RA#ping 2.2.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: .....

缺省网关和默认路由的区别(经典)

缺省网关和默认路由的区别(经典) ip default-network和ip route 0.0.0.0 0.0.0.0的区别 指定默认路由(last resort gateway)的指令供有3种,可以分成两类: 1、ip default-gateway 当路由器上的ip routing无效时,使用它指定默认路由,用于RXBoot模式(no ip routing)下安装IOS等。或者关闭ip routing 让路由器当主机用,此时需要配置默认网关 2、ip default-network和ip route 0.0.0.0 0.0.0.0 两者都用于ip routing有效的路由器上,区别主要在于路由协议是否传播这条路由信息。比如:IGRP无法识别0.0.0.0,因此传播默认路由时必须用ip default-network。 当用ip default-network指令设定多条默认路由时,administrative distance最短的成为最终的默认路由;如果有复数条路由distance值相等,那么在路由表(show ip route)中靠上的成为默认路由。 同时使用ip default-network和ip route 0.0.0.0 0.0.0.0双方设定默认路由时,如果ip default-network设定的网络是直连(静态、且已知)的,那么它就成为默认路由;如果ip default-network指定的网络是由交换路由信息得来的,则ip route 0.0.0.0 0.0.0.0指定的表项成为默认路由。 最后,如果使用多条ip route 0.0.0.0 0.0.0.0指令,则流量会自动在多条链路上负载均衡。官方详细文档点这里 例子: 关闭ip routing 举例: myCisco(config)#no ip routing myCisco(config)#ip default-gateway 192.168.0.1 myCisco(config)#end mycisco#ping https://www.wendangku.net/doc/3113600948.html, Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 61.152.167.75, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms mycisco#showip route Default gateway is 192.168.0.1 Host Gateway Last Use Total Uses Interface ICMP redirect cache is empty mycisco# ip route例子: ip route 0.0.0.0 0.0.0.0 192.168.0.1 mycisco#ping https://www.wendangku.net/doc/3113600948.html,

CCNP级别的EIGRP综合实验2

EIGRP综合实验2 配置要点 ●帧中继交换机以及PVC的配置 ●帧中继多点子接口配置 ●帧中继点对点子接口配置 ●EIGRP基本配置(包括静态邻居的配置) ●NTP配置 ●EIGRP认证配置 实验拓扑 配置概述 ●在FRSW上配置帧中继交换机,PVC的设计如下: ?R41--S1/0--S1/0.12------412------S1/0--FRSW--S1/1------421------S1/0--R42; ?R41--S1/0--S1/0.12------415------S1/0--FRSW--S1/3------451------S1/0--R45; ?R41--S1/0--S1/0.14------414------S1/0--FRSW--S1/2------441------S1/0--R44;

●各站点的IP地址设计如下: ?R41--S1/0--S1/0.12--172.14.12.41/24------172.14.12.42/24--S1/0--R42; ?------172.14.12.45/24--S1/0--R45; ?R41--S1/0--S1/0.14--172.14.14.41/24------172.14.14.44/24--S1/0--R44; ●EIGRP的基本配置,包括静态邻居的配置; ●NTP的配置: ?把R41配置为NTP的服务器; ?把R42、R45和R44配置为NTP的客户端 ●以R41为中心与其他各个站点(R42、R45和R44)配置EIGRP认证。

FRSW3(config-if)#frame intf-type dce FRSW3(config-if)#frame route 441 int s 1/0 414 FRSW3(config-if)#no sh FRSW3(config-if)#^Z FRSW3# 配完之后看看接口 继续点对点子接口的配置 R41(config)#int s 1/0.14 ? multipoint Treat as a multipoint link point-to-point Treat as a point-to-point link

EIGRP综合实验

基础知识点: EIGRP的metric计算 有K1(带宽)、K2(负载)、K3(延迟)、K4(可靠性)、K5(MTU)五个参数,默认情况下k值如下:K1=K3=1;K2=K4=K5=0 metric=256*(10000000/K1*bandwidth(kbit/s)+ total delay/10) BW和DLY值都可以在接口模式下手工指定,使用delay值时是tens of microseconds,在show interface 时实际值要乘以10. 使用metric weights 可以修改k值;但同一自制系统内的所有K值必须一致。 BW和DLY值可以使用show interface命令查看如 Ethernet0/1 is up, line protocol is up Hardware is AmdP2, address is cc00.0ffc.0001 (bia cc00.0ffc.0001) Internet address is 192.168.4.1/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:02, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 816 packets input, 75702 bytes, 0 no buffer Received 808 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 1172 packets output, 97655 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out total delay可以通过show ip route x.x.x.x 查看到:如 RC#show ip route 192.168.3.0 Routing entry for 192.168.3.0/24 Known via "eigrp 100", distance 90, metric 307200, type internal Redistributing via eigrp 100 Last update from 192.168.4.2 on Ethernet0/1, 00:36:32 ago

三种动态路由协议下发默认路由的方式

RIP:(边界路由) 1.重分布静态路由re distribute static 2.default-intformation originate 3.缺省路由ip default-network (宣告主类网络号) 4.在RIP进程中宣告缺省路由network 0.0.0.0 5.在接口下汇总默认路由ip summary-address rip 0.0.0.0 0.0.0.0 EIGRP:(边界路由) 1.重分布静态路由re distribute static 2.缺省路由ip default-network (宣告主类网络号),同时在进程下宣告主类网络号,另外在连接内网的接口下采用手动汇总该外部路由 3.在EIGRP进程中宣告缺省路由network 0.0.0.0 4.全网使用静态路由实现逻辑全互联(不推荐) OSPF:(边界路由) 使用default-information originate 必须在路由表中手动添加缺省指向NULL 0 default-information originate always----->强制添加缺省路由进入路由表 OSPF来说,它和距离矢量协议是不一样的,它的路径计算是基于SPF算法的,是通过LSA 来泛红路由,如果想在ospf内重分布默认路由的话,那么就需要配合使用default-information originate这个命令,因为ospf是只能重分布非缺省状态的静态路由,如果要是没有配置缺省路由的话,那么就要在default-information originate 后面加个always,就是无论本路由器路由表里有没有默认路由,都会广播出去。

EIGRP基本配置实验

EIGRP基本配置实验 一、实验目的 1.掌握EIGRP基本原理 2.掌握EIGRP基本配置 3.掌握EIGRP的验证配置 4.了解EIGRP的简单测试 二、实验拓扑图 三、实验内容 -配置IP地址实现直连互通 -在所有的路由器上配置EIGRP ,AS号位100, -查看R2的路由表和邻居表,并分析路由表中EIGRP路由条目的度量值的计算过程

-R1-R2之间启用EIGRP密文验证,密钥位KEY 12,KEY-STRING-QM_CCNA *若在路由表中出现汇总路由,建议在每一台路由器上配置 R1(config-if)#router eigrp 1 R1(config-router)#no auto-summary 四、实验具体操作截图 1.配置IP地址实现直连互通 (1)为R1配置IP地址 (2)为R2配置IP地址

(3)为R3配置IP地址 (4)验证是否直连互通 结果:可以直连互通 2.在所有的路由器上配置EIGRP ,AS号位100

3.查看R2的路由表和邻居表,并分析路由表中EIGRP路由条目的 度量值的计算过程。 (1)查看R2的路由表和邻居表 (2)分析路由表中路由条目的度量值的计算过程 Metric=[10^7/BW+延时总和/10US]*256 在R2的路由表中,根据度量值计算公式: Metric=[10^7/100+(5000+100)/10US]*256=156160 其中f口的最小带宽是100M,总延时为Loopback口的延时5000加上经过路由器F口的延时100之和。 注:对于计算度量值时,才开始总是算不对,将loopback口的延时当做是100,怎么算都不对,百思不得其解,最后上网查找,得知loopback口环路默认延时是5000,最终计算出的度量值与路由表中的度量值相等。

eigrp命令

EIGRP命令列表 ---------------- ◆{Router(config)#router eigrp [AS号]} 开启EIGRP路由协议 ◆{Router(config-router)#network [子网号]} 配置EIGRP子网 ◆{Router(config-router)#network [子网号] [掩码]} 配置EIGRP无类子网 ◆{no auto-summary} 关闭有类自动汇总 ◆{ip summary-address [AS号] [IP地址] [掩码]} 手动配置汇总 ◆{eigrp stub} 配置一个末梢路由 ◆{variance} 配置一个不平衡的均衡负载 ◆{ip hello-interval eigrp [AS号] [时间/s]} 改变Hello包发送频率 ◆{ip hold-time eigrp [AS号] [时间/s]} 改变Hold-Time长度 ◆{bandwidth} 改变一个接口上的带宽,最大化带宽将限制它自身的通路 ◆{ip bandwidth-percent eigrp [AS号]} 改变EIGRP通路使用的带宽。默认为50% ◆{Router(config)#interface s0 Router(config-if)#ip summary-address eigrp [AS号] [IP地址] [掩码]} 手工配置汇总 ◆{Router(config-router)#eigrp stub [receive-only | connected | redistributed | static | summary]} 配置末梢路由 ◆{Router(config-route)#variance multiplier} 配置不等开销负载均衡 ◆{Rout er(config-if)#ip hello-interval eigrp [AS号] [时间]} 配置Hello计时器 ◆{Router(config-if)#ip hold-time eigrp [AS号] [时间]} 配置Hold计时器 ◆{Router(config-if)#ip authentication mode eigrp [AS号] md5} 起用EIGRP的MD5认证 ◆{Router(config-if)#ip anthentication key-chain eigrp [AS号] [chain-name]} 配置MD5密匙 ◆{Router(config)#key chain [chain-name] Router(config-if)#key [key-id] Router(config-keychain-key)#key-string [key]}

Eigrp协议总结

Eigrp 的总结: 一、特点: 1.高级距离失量; 2.组播和单播的更新方式; 3.支持多种网络层协议 4.100%无环路无类路由; 5.快速收剑; 6.增量更新; 7.灵活的网络设计; 8.支持VLSM和不连续子网; 9.支持等价负载均衡和非等价负载均衡; 10.在W AN和LAN链路的配置简单; 11.支持在任何点可以手动汇总; 12.丰富的度量。 二、关键技术 1第一个关键技术: ---------------多协议模块: Eigrp 是个不可靠的协议。因为是封装在IP网络层。怎样保证可靠传输? A:用序列号(sequence) B:用确认号(acknowledge) 2第二个关键技术: ------------RTP 协议保证可靠传输: RTP定义了eigrp的五种结构: Hello包: Update包:是可靠的包,正常情况下,使用组播地址:224.0.0.10.发送后必须收到一个单播的回复。也就是确认单播发送的。组播发出后,经过一个“组播流计时器”时间后,仍然没有收到ACK, 则要重传;重传的方式变为单播。经过单播重传记时器RTO还没有收到回复,则一直重传。 重传16次则认为邻居关系不存了) 查询包: 回复包: 确认包: 另外还有两个包:SIA查询包和SIA回复包(stuck in active卡在活动状态) 本节中有一个抓包试验: 如图:

3.第三个关键技术: ---------------邻居的发现与恢复: 邻居的发现过程:-------------三次握手: 利用Holle包,来发现邻居; R1:Hello --------------------------→R2 第一次 <————————hello 第二次 <————————update ACK------------------------→第三次 update----------------------→ holle 时间为5秒,失效时间为15秒;抖动时间:可以忽略不计。 试验:修改holle时间和失效时间: R1上:在接口状态下: Ip hello-interval eigrp 100 10(改为10秒) hello包时间 Ip hold-time eigrp 100 30(改为30秒) 生存时间修改 只是在R1做了改动,试验也没有提示邻居关系down了。可见,hello时间不一至不会影响邻居关系的建立。 4.第四个关键技术: ---------------DUL弥算更新算法: 1).几个名词: FD:可行性距离:到达目的网络的最小度量。 AD:被通告距离:邻居路由器到达的目的网络的最小度量。 可行性后继路由器(feasible succeessor):经过的下一个路由器。成为可行性后继路由器的条件:AD

实验 9.6.2:EIGRP 配置技能实验

实验 9.6.2:EIGRP 配置技能实验 拓扑图 地址表 设备接口IP 地址子网掩码默认网关Fa0/0 不适用 S0/0/0 不适用HQ S0/0/1 不适用 Lo1 不适用 Fa0/0 不适用BRANCH1 S0/0/0 不适用 S0/0/1 不适用 Fa0/0 不适用BRANCH2 S0/0/0 不适用 S0/0/1 不适用PC1 网卡 PC2 网卡 PC3 网卡

学习目标 完成本实验后,您将能够: ?根据需要创建有效的 VLSM 设计。 ?为接口分配适当的地址并记录地址。 ?根据拓扑图进行网络布线。 ?清除启动配置并将路由器重新加载为默认状态。 ?配置路由器(包括 EIGRP)。 ?配置并传播静态默认路由。 ?检验 EIGRP 的运作。 ?测试并检验网络是否完全连通。 ?思考网络实施并整理成文档。 场景 在本实验练习中,为您指定了一个网络地址,您必须使用 VLSM 对其划分子网,并为拓扑图中显示的网络分配地址。这里需要组合使用 EIGRP 路由和静态路由,以便非直连网络中的主机能够彼此通信。必须配置EIGRP,以便所有 IP 流量使用最短的路径到达目的地址。 任务 1:对地址空间划分子网。 步骤 1:分析网络要求。 该网络的编址要求如下: ?必须对 172.16.0.0/16 网络划分子网,为三个 LAN 提供地址。 ? HQ 的 LAN 需要 500 个地址。 ? BRANCH1 的 LAN 需要 200 个地址。 ? Branch 2 的 LAN 需要 100 个地址。 ?代表 HQ 路由器和 ISP 路由器之间链路的环回地址将使用 209.165.200.224/30 网络。 ?必须对 192.168.1.16/28 地址空间划分子网,得到三台路由器之间的链路的地址。 步骤 2:创建网络设计时,请思考以下问题: 需要通过 172.16.0.0/16 网络创建多少个子网? _______ 总共需要通过 172.16.0.0/16 网络提供多少个 IP 地址? _______ HQ 的 LAN 子网将使用什么子网掩码?______________________ 在该子网中最多可以使用多少个主机地址? _______ BRANCH1 的 LAN 子网将使用什么子网掩码?________________ 在该子网中最多可以使用多少个主机地址? _______ BRANCH2 的 LAN 子网将使用什么子网掩码?______________ 在该子网中最多可以使用多少个主机地址? _______ 三台路由器之间的链路的子网掩码是多少?________ 每个子网最多有多少个主机地址可以使用? _____

ospf默认路由配置

OSPF默认路由详解与配置 R1------area1-------R2--------area0--------R3-------area2-------R4------eigrp-----R5 接口信息: R1:lo0 1.1.1.1 255.255.255.0 area1 R2: lo0 2.2.2.2 255.255.255.0 area0 R3: lo0 3.3.3.3 255.255.255.0 area2 R4: lo0 4.4.4.4 255.255.255.0 area2 R5: lo0 5.5.5.5 255.255.255.0 eigrp OSPF默认路由: 在R5上启用int lo10 ip add 55.1.1.1 255.255.255.0,不宣告的EIGRP内部,这是R1,R2,R3,R4是不能ping通该地址的, 因为路由不可达。所以需要在R4指向R5一条默认ip route 0.0.0.0 0.0.0.0 45.1.1.2, 然后R4 就可以ping通R5了,依此类推,R3做一条指向R4的默认路由,R2做一条指向R3的默认路由,R1做 一条指向R2的默认路由就的可以ping通55.1.1.1了。但是这样做太麻烦了,如何是OSPF内部有很 多路器的话,那不就的指很多默认路由了吗?所以这时有一个简单的方法,如下: 在R4上做默认路由 R4(config-router)#default-information originate,就可以让R1,R2,R3,分别自动产生一条

O*E2的默认路由指向它上一级的地址。但是由于R1,R2,R3,在ping 55.1.1.1时在R4会断掉,不能 ping通,也就是说该默认路由不生效,所以OSPF在这种情况下是不把该默认路由显示出来的,除 非在R4到R5的地方手工加一条默认路由让其路由可达,该O*E2的默认路由才会显示,R1,R2,R3才 能ping通。 如果是不加那条R4---R5的默认的话,还想要R1,R2,R3的O*E2默认路由产生就必须在原有命了的基 础上在加上一个关键字,如下: R4(config-router)#default-information originate always NSSA默认路由 在R3---R4做nssa区域如下: R3(nssa)-------R4(nssa) 在R3上做NSSA的默认路由 R3(config-router)#area 2 nssa default-information-originate 说明: |-----------------------------------------------------------------------------------| |在做NSSA区域的默认路由的时候必须是该路由器为ABR,并且与骨干区域之间相连,做完默认路| |由后会有一条默认路由由R4指向R3一条O*N2的默认产生。

EIGRP负载均衡实验

EIGRP 负载均衡实验 R1: iinterface Serial2/0 ip address 12.1.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000 ! interface Serial2/1 ip address 13.1.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000 router eigrp 100 network 0.0.0.0 no auto-summary

R2: interface FastEthernet0/0 ip address 23.1.1.1 255.255.255.0 duplex auto speed auto interface Serial2/0 ip address 12.1.1.2 255.255.255.0 serial restart-delay 0 router eigrp 100 network 0.0.0.0 no auto-summary R3: interface FastEthernet0/0 ip address 23.1.1.2 255.255.255.0 duplex auto speed auto interface Serial2/1 ip address 13.1.1.2 255.255.255.0 serial restart-delay 0 router eigrp 100 network 0.0.0.0 no auto-summary

R3路由表: R3#show ip rou Gateway of last resort is not set 23.0.0.0/24 is subnetted, 1 subnets C 23.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets D 12.1.1.0 [90/2172416] via 23.1.1.1, 00:01:06, FastEthernet0/0 //去 12.1.1.0网段via f0/0 13.0.0.0/24 is subnetted, 1 subnets C 13.1.1.0 is directly connected, Serial2/1 R3#show ip eigrp to IP-EIGRP Topology Table for AS(100)/ID(23.1.1.2) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 12.1.1.0/24, 1 successors, FD is 2172416 via 23.1.1.1 (2172416/2169856), FastEthernet0/0 via 13.1.1.1 (2681856/2169856), Serial2/1 P 13.1.1.0/24, 1 successors, FD is 2169856 via Connected, Serial2/1 P 23.1.1.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0

EIGRP协议基本配置和常用命令

配置EIGRP协议 #c o n f t#r o u t e r e i g r p100*E I G R P需要配置A S号* *A S标识了属于一个互连网络中的所有路由器,* *同一个A S内的不同路由如果想要互相学习路由信息,必须配置相同的A S号。* #n e t1.1.1.00.0.0.255 *宣告接口,使用的是反掩码形式,如果不输入反掩码,路由默认会使用接口的主类网络号* "n e t12.1.1.0"等价于"n e t12.0.0.00.255.255.255" #n e t0.0.0.0 *如果路由的所有接口都宣告进E I G R P进程,则可以使用"n e t0.0.0.0"一次性宣告所有接口*查询EIGRP 在running-config中的配置明细 #s h r u n n i n g-c o n f i g|s e c t i o n r e i r o u t e r e i g r p100 n e t w o r k1.1.1.00.0.0.255 n e t w o r k12.1.1.00.0.0.255 n e t w o r k21.1.1.00.0.0.255a u t o-s u m m a r y EIGRP表 EIGRP中有三张表:邻居表、路由表、拓扑表 邻居表(Neighbor Table) 在EIGRP中,两台相邻路由器要建立起邻接关系需要满足两个条件: 1)具有相同的AS号; 2)具有相匹配的K值;可以通过下面的命令来查看EIGRP默认的K 值: #s h o w i p p r o t o c o l s /*A S=100*/

EIGRP的基本配置

Configuring Basic EIGRP 实验目的: 1、掌握EIGRP的基本配置。 2、掌握EIGRP的通配符掩配置方法。 3、掌握EIGRP的自动汇总特性,以及如何关闭自动汇总。 4、掌握EIGRP的手工汇总。 实验拓扑图: R1(config)#inter lo 0 R1(config-if)#ip add 10.1.1.1 255.255.255.0 R1(config-if)#inter lo 1 R1(config-if)#ip add 10.1.2.1 255.255.255.0 R1(config-if)#inter lo 2 R1(config-if)#ip add 10.1.3.1 255.255.255.0 R1(config-if)#inter lo 4 R1(config-if)#ip add 10.1.4.1 255.255.255.0 R1(config-if)#inter s1/1 R1(config-if)#ip add 172.16.1.1 255.255.255.252 R1(config-if)#router eigrp 50 R1(config-router)#net 10.1.1.0 R1(config-router)#net 10.1.2.0 R1(config-router)#net 10.1.3.0 R1(config-router)#net 10.1.4.0 R1(config-router)#net 172.16.0.0 R2(config)#inte lo 0 R2(config-if)#ip add 131.131.1.1 255.255.0.0 R2(config-if)#inter s1/0 R2(config-if)#ip add 172.16.1.2 255.255.255.252 R2(config-if)#inter s1/1 R2(config-if)#ip add 172.16.1.5 255.255.255.252 R2(config-if)#router eigrp 50 R2(config-router)#net 131.131.0.0

RIP传递默认路由的5种方法

RIP传递默认路由的5种方法 wangyang 发表于 2007-1-17 12:26:49 在一个单出口网络内启用RIP协议,在网络出口处的路由器需要向RIP域内传播一条默认路由,这样,域内的路由器就可以通过默认路由访问外部网络。下面我们就用试验来模拟这个环境。到目前为止;通过RIP传递默认路由共有5种方法。 1 default-information 2 手工写一条默认路由(到NULL0)然后重分布到RIP中 3 手工写一条默认路由(到NULL0)在进程中宣告

4 ip default-network 5 在接口汇总 0.0.0.0/0 到NULL0的路由 ********************************************************************* ****************************************** 一路由器基本配置 R1 interface Loopback0 ip address 1.1.1.1 255.255.255.0 interface Serial1/0 ip address 12.0.0.1 255.255.255.0 router rip version 2 network 1.0.0.0 network 12.0.0.0 no auto-summary ------------------ R2 interface Serial1/0 ip address 12.0.0.2 255.255.255.0 interface Serial1/1 ip address 23.0.0.2 255.255.255.0 router rip version 2 network 2.0.0.0 network 12.0.0.0 no auto-summary ------------------ R3 interface Serial1/0 ip address 23.0.0.3 255.255.255.0 ********************************************************************* ***************************************** 二方法1default-information r2#sh run | b r r router rip

EIGRP 路由汇总

Manually Summarizing EIGRP Routes 实验目的: 1、理解EIGRP的自动汇总的缺点。 2、掌握EIGRP的手工自动总结的配置方法。 实验拓扑图: R1、R2、R3、R4的基本路由配置如下: R1(config-line)#inter lo 0 R1(config-if)#ip add 10.1.0.1 255.255.255.0 R1(config-if)#inter lo 1 R1(config-if)#ip add 10.1.1.1 255.255.255.0 R1(config-if)#inter lo 2 R1(config-if)#ip add 10.1.2.1 255.255.255.0 R1(config-if)#inter lo 3 R1(config-if)#ip add 10.1.3.1 255.255.255.0 R1(config-if)#inter f0/0 R1(config-if)#ip add 172.16.1.1 255.255.255.252 R2(config-line)#inter f0/1 R2(config-if)#ip add 172.16.1.2 255.255.255.252 R2(config-if)#inter f0/0 R2(config-if)#ip add 172.16.1.5 255.255.255.252 R3(config-line)#inter lo 0 R3(config-if)#ip add 192.168.0.1 255.255.255.0 R3(config-if)#inte lo 1 R3(config-if)#ip add 192.168.1.1 255.255.255.0 R3(config-if)#inter lo 2 R3(config-if)#ip add 192.168.2.1 255.255.255.0 R3(config-if)#inter lo 3 R3(config-if)#ip add 192.168.3.1 255.255.255.0 R3(config-if)#inter f0/1 R3(config-if)#ip add 172.16.1.6 255.255.255.252 R3(config-if)#inter f0/0 R3(config-if)#ip add 172.16.1.9 255.255.255.252

EIGRP默认路由发布方法

EIGRP默认路由发布方法 拓扑 R1(s1/2)----------------(s1/3) R2 (s1/2)---------------------(s1/3) R3 1:写一条默认路由,network到EIGRP进程 ip route 0.0.0.0 0.0.0.0 interface (接口必须是up而且要有address,或者是null0,也可以是lookback接口) router eigrp AS network 0.0.0.0 缺点:会在宣告的路由器上,将所有接口激活.包括你不想激活的接口 注意在RIP中创建的默认路由不会从所跟的接口和能到达下跳地址的接口传递出去但是EIGRP可以这个是因为水平分割在RIP中是默认关闭的而EIGRP不是。 R2(config)#ip route 0.0.0.0 0.0.0.0 null 0 R2(config)#router eigrp 1 R2(config-router)#network 0.0.0.0

2:写一条默认路由,重分布静态到EIGRP进程 ip route 0.0.0.0 0.0.0.0 interface(下一跳可以是出口标识,也可以是下一跳ip地址。接口必须是up而且要有address或者是null0) router eirp AS redistribute static metric 10000 100 255 1 1500 默认路由出现的形式D*EX,AD=170 和RIP的对比和第1种方法一样。 R2(config)#ip route 0.0.0.0 0.0.0.0 null 0

BSCI实验--EIGRP

实验一、EIGRP的基础配置和验证: 所有路由器都处于AS100中,两个路由器的直连网段使用宣告主网的方式配置,loopback口使用反掩码配置 路由配置: R1: R1(config)#router eigrp 100启动EIGRP路由协议,AS号为100 R1(config-router)#network 192.168.0.0宣告直连主类网 R1(config-router)#network 1.1.1.1 0.0.0.0使用反掩码宣告直连网络 R2: Router(config)#router eigrp 100启动EIGRP路由协议,AS号为100 Router(config-router)#network 192.168.0.0宣告直连主类网 Router(config-router)#network 2.2.2.2 0.0.0.0使用反掩码宣告直连网络 系统日志信息: R1 *Mar 1 00:05:13.279: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.0.2 (FastEthernet0/0) is up: new adjacency 邻居变化,EIGRP AS100,邻居192.168.0.2(f0/0接口)建立,新的

邻接关系 R2 *Mar 1 00:05:12.759: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.0.1 (FastEthernet0/0) is up: new adjacency 邻居变化,EIGRP AS100,邻居192.168.0.1(f0/0接口)建立,新的邻接关系 在R1上进行验证: 测试连通性 R1#ping 2.2.2.2 source 1.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: Packet sent with a source address of 1.1.1.1 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/64/108 ms 使用1.1.1.1为源地址ping 2.2.2.2测试是否连通 显示邻居表 邻居直连接口地址为192.168.0.2 通过f0/0接口获得邻居,保持时间还有13秒,邻居建立总时间6分18秒 显示拓扑表

相关文档
相关文档 最新文档