EIGRP管理距离引起路由震荡的原因及解决
一路求学网 http://www.16qiuxue.com 阅览次数: 471次 08-24 16:25:29
标签:网络故障解决,网络故障排除,常见网络故障,http://www.16qiuxue.com
EIGRP管理距离引起路由震荡的原因及解决,
EIGRP和OSPF做双点双向重分发
第一种情况:
1,R1,R2,R3,R4初始配置 R1
conf t
int l 0
ip add 1.1.1.1 255.255.255.255
int f0/0
ip add 1.1.123.1 255.255.255.0
no shut
router eigrp 1
no auto
net 1.1.1.1 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R2
conf t
int l 0
ip add 1.1.2.2 255.255.255.255
int f0/0
ip add 1.1.123.2 255.255.255.0
no shut
int s1/0
ip add 1.1.234.2 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 204 b
frame map ip 1.1.234.3 204 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.2.2
net 1.1.234.2 0.0.0.0 a 0
net 1.1.2.2 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.2.2 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R3
conf t
int l 0
ip add 1.1.3.3 255.255.255.255
int f 0/0
ip add 1.1.123.3 255.255.255.0
no shut
int s1/0
ip add 1.1.234.3 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 304 b
frame map ip 1.1.234.2 304 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.3.3
net 1.1.234.3 0.0.0.0 a 0
net 1.1.3.3 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.3.3 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R4
conf t
int l 0
ip add 1.1.4.4 255.255.255.255
int s1/0
ip add 1.1.234.4 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.2 402 b
frame map ip 1.1.234.3 403 b
no shut
router ospf 1
router-id 1.1.4.4
nei 1.1.234.2
nei 1.1.234.3
net 1.1.234.4 0.0.0.0 a 0
net 1.1.4.4 0.0.0.0 a 0
end
到这里(电脑自动关机),所有的EIGRP和OSPF邻居关系都建立好了。 2,在R2和R3上做双点双向重分发 R2
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end
R3
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end 重分发完成, 验证
R1路由表 R1#sh ip route Gateway of last resort is not set 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
D EX 1.1.4.4/32 [170/284160] via 1.1.123.3, 00:01:03, FastEthernet0/0
[170/284160] via 1.1.123.2, 00:01:03, FastEthernet0/0
D 1.1.3.3/32 [90/156160] via 1.1.123.3, 00:08:44, FastEthernet0/0
D 1.1.2.2/32 [90/156160] via 1.1.123.2, 00:08:44, FastEthernet0/0
C 1.1.1.1/32 is directly connected, Loopback0
C 1.1.123.0/24 is directly connected, FastEthernet0/0
D EX 1.1.234.0/24 [170/284160] via 1.1.123.3, 00:02:51, FastEthernet0/0
[170/284160] via 1.1.123.2, 00:02:51, FastEthernet0/0 R4路由表
R4#sh ip route Gateway of last resort is not set 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 1.1.4.4/32 is directly connected, Loopback0
O 1.1.3.3/32 [110/65] via 1.1.234.3, 00:00:14, Serial1/0
O 1.1.2.2/32 [110/65] via 1.1.234.2, 00:00:14, Serial1/0
O E1 1.1.1.1/32 [110/164] via 1.1.234.3, 00:00:14, Serial1/0
[110/164] via 1.1.234.2, 00:00:14, Serial1/0
O E1 1.1.123.0/24 [110/164] via 1.1.234.3, 00:00:14, Serial1/0
[110/164] via 1.1.234.2, 00:00:14, Serial1/0
C 1.1.234.0/24 is directly connected, Serial1/0
第二种情况
在R1的S1/2接口接入R5,并启用RIPV2
R5
conf t
int s1/2
ip add 192.168.45.5 255.255.255.0
no shut
router rip
ver 2
no auto
net 192.168.45.0
end R1
conf t
int s1/2
no shut
ip add 192.168.45.4 255.255.255.0
router rip
ver 2
no au
net 192.168.45.0
end
把RIP再分发到EIGRP1中
router eigrp 1
redistribute rip metric 10000 100 255 1 1500
end 这时看R2和R3上的路由表 R2(config)#do sh 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 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 1.1.4.4/32 [110/65] via 1.1.234.4, 00:31:58, Serial1/0
D 1.1.3.3/32 [90/156160] via 1.1.123.3, 00:05:56, FastEthernet0/0
C 1.1.2.2/32 is directly connected, Loopback0
D 1.1.1.1/32 [90/156160] via 1.1.123.1, 00:05:56, FastEthernet0/0
C 1.1.123.0/24 is directly connected, FastEthernet0/0
C 1.1.234.0/24 is directly connected, Serial1/0
O E1 192.168.45.0/24 [110/164] via 1.1.234.3, 00:05:59, Serial1/0
R2(config)#do ping 192.168.45.5 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.45.5, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5) 仔细查看路由表可以发现,R2到192.168.45.0网段下一跳是1.1.234.2,也就是R3的S1/0接口,但是拓扑上表明下一跳为R1的F0/0接口为最佳路径。为什么会出现这样的情况呢
,EIGRP管理距离引起路由震荡的原因及解决
EIGRP和OSPF做双点双向重分发
第一种情况:
1,R1,R2,R3,R4初始配置 R1
conf t
int l 0
ip add 1.1.1.1 255.255.255.255
int f0/0
ip add 1.1.123.1 255.255.255.0
no shut
router eigrp 1
no auto
net 1.1.1.1 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R2
conf t
int l 0
ip add 1.1.2.2 255.255.255.255
int f0/0
ip add 1.1.123.2 255.255.255.0
no shut
int s1/0
ip add 1.1.234.2 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 204 b
frame map ip 1.1.234.3 204 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.2.2
net 1.1.234.2 0.0.0.0 a 0
net 1.1.2.2 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.2.2 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R3
conf t
int l 0
ip add 1.1.3.3 255.255.255.255
int f 0/0
ip add 1.1.123.3 255.255.255.0
no shut
int s1/0
ip add 1.1.234.3 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 304 b
frame map ip 1.1.234.2 304 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.3.3
net 1.1.234.3 0.0.0.0 a 0
net 1.1.3.3 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.3.3 0.0.0.0
net 1.1.123.0 0.0.0.255
end
R4
conf t
int l 0
ip add 1.1.4.4 255.255.255.255
int s1/0
ip add 1.1.234.4 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.2 402 b
frame map ip 1.1.234.3 403 b
no shut
router ospf 1
router-id 1.1.4.4
nei 1.1.234.2
nei 1.1.234.3
net 1.1.234.4 0.0.0.0 a 0
net 1.1.4.4 0.0.0.0 a 0
end
到这里(电脑自动关机),所有的EIGRP和OSPF邻居关系都建立好了。 2,在R2和R3上做双点双向重分发 R2
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end
R3
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end 重分发完成, 验证
R1路由表 R1#sh ip route Gateway of last resort is not set 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
D EX 1.1.4.4/32 [170/284160] via 1.1.123.3, 00:01:03, FastEthernet0/0
[170/284160] via 1.1.123.2, 00:01:03, FastEthernet0/0
D 1.1.3.3/32 [90/156160] via 1.1.123.3, 00:08:44, FastEthernet0/0
D 1.1.2.2/32 [90/156160] via 1.1.123.2, 00:08:44, FastEthernet0/0
C 1.1.1.1/32 is directly connected, Loopback0
C 1.1.123.0/24 is directly connected, FastEthernet0/0
D EX 1.1.234.0/24 [170/284160] via 1.1.123.3, 00:02:51, FastEthernet0/0
[170/284160] via 1.1.123.2, 00:02:51, FastEthernet0/0 R4路由表
R4#sh ip route Gateway of last resort is not set 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 1.1.4.4/32 is directly connected, Loopback0
O 1.1.3.3/32 [110/65] via 1.1.234.3, 00:00:14, Serial1/0
O 1.1.2.2/32 [110/65] via 1.1.234.2, 00:00:14, Serial1/0
O E1 1.1.1.1/32 [110/164] via 1.1.234.3, 00:00:14, Serial1/0
[110/164] via 1.1.234.2, 00:00:14, Serial1/0
O E1 1.1.123.0/24 [110/164] via 1.1.234.3, 00:00:14, Serial1/0
[110/164] via 1.1.234.2, 00:00:14, Serial1/0
C 1.1.234.0/24 is directly connected, Serial1/0
第二种情况
在R1的S1/2接口接入R5,并启用RIPV2
R5
conf t
int s1/2
ip add 192.168.45.5 255.255.255.0
no shut
router rip
ver 2
no auto
net 192.168.45.0
end R1
conf t
int s1/2
no shut
ip add 192.168.45.4 255.255.255.0
router rip
ver 2
no au
net 192.168.45.0
end
把RIP再分发到EIGRP1中
router eigrp 1
redistribute rip metric 10000 100 255 1 1500
end 这时看R2和R3上的路由表 R2(config)#do sh 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 1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 1.1.4.4/32 [110/65] via 1.1.234.4, 00:31:58, Serial1/0
D 1.1.3.3/32 [90/156160] via 1.1.123.3, 00:05:56, FastEthernet0/0
C 1.1.2.2/32 is directly connected, Loopback0
D 1.1.1.1/32 [90/156160] via 1.1.123.1, 00:05:56, FastEthernet0/0
C 1.1.123.0/24 is directly connected, FastEthernet0/0
C 1.1.234.0/24 is directly connected, Serial1/0
O E1 192.168.45.0/24 [110/164] via 1.1.234.3, 00:05:59, Serial1/0
R2(config)#do ping 192.168.45.5 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.45.5, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5) 仔细查看路由表可以发现,R2到192.168.45.0网段下一跳是1.1.234.2,也就是R3的S1/0接口,但是拓扑上表明下一跳为R1的F0/0接口为最佳路径。为什么会出现这样的情况呢
,EIGRP管理距离引起路由震荡的原因及解决
《EIGRP管理距离引起路由震荡的原因及解决》相关文章
- EIGRP管理距离引起路由震荡的原因及解决
- › EIGRP管理距离引起路由震荡的原因及解决
- 在百度中搜索相关文章:EIGRP管理距离引起路由震荡的原因及解决
- 在谷歌中搜索相关文章:EIGRP管理距离引起路由震荡的原因及解决
- 在soso中搜索相关文章:EIGRP管理距离引起路由震荡的原因及解决
- 在搜狗中搜索相关文章:EIGRP管理距离引起路由震荡的原因及解决
- tag: 网络故障,网络故障解决,网络故障排除,常见网络故障,电脑学习 - 电脑故障维修 - 网络故障