水平分割之eigrp split horizon(1)(3)
现在去掉RIP启动EIGRP再查看结果:
- R1(config)#no router rip
- R1(config)#router ei 100
- R1(config-router)#no au
- R1(config-router)#net 1.1.1.0 0.0.0.255
- R1(config-router)#net 11.1.1.0 0.0.0.255
- R2(config)#no router rip
- R2(config)#router ei 100
- R2(config-router)#no au
- R2(config-router)#net 2.2.2.0 0.0.0.255
- R2(config-router)#net 11.1.1.0 0.0.0.255
- R3(config)#no router rip
- R3(config)#router ei 100
- R3(config-router)#no au
- R3(config-router)#net 3.3.3.0 0.0.0.255
- R3(config-router)#net 11.1.1.0 0.0.0.255
查看R2 R3路由表
- R2#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/24 is subnetted, 1 subnets
- D 1.1.1.0 [90/2297856] via 11.1.1.1, 00:01:33, Serial0/0 (此时只有R1的路由没有R3的了)
- 2.0.0.0/24 is subnetted, 1 subnets
- C 2.2.2.0 is directly connected, Loopback0
- 11.0.0.0/24 is subnetted, 1 subnets
- C 11.1.1.0 is directly connected, Serial0/0
- R3#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/24 is subnetted, 1 subnets
- D 1.1.1.0 [90/2297856] via 11.1.1.1, 00:05:01, Serial0/0同样也是只有R1的路由没R2的)
- 3.0.0.0/24 is subnetted, 1 subnets
- C 3.3.3.0 is directly connected, Loopback0
- 11.0.0.0/24 is subnetted, 1 subnets
- C 11.1.1.0 is directly connected, Serial0/0
这是我们在接口下关闭EIGRP的水平分割再看
- R1(config)#int s0/0
- R1(config-if)#no ip split-horizon eigrp 100
查看路由表
- R2#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/24 is subnetted, 1 subnets
- D 1.1.1.0 [90/2297856] via 11.1.1.1, 00:00:25, Serial0/0
- 2.0.0.0/24 is subnetted, 1 subnets
- C 2.2.2.0 is directly connected, Loopback0
- 3.0.0.0/24 is subnetted, 1 subnets
- D 3.3.3.0 [90/2809856] via 11.1.1.1, 00:00:25, Serial0/0这时,我们看到了R3的路由)
- 11.0.0.0/24 is subnetted, 1 subnets
- C 11.1.1.0 is directly connected, Serial0/0
- R3#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/24 is subnetted, 1 subnets
- D 1.1.1.0 [90/2297856] via 11.1.1.1, 00:00:20, Serial0/0
- 2.0.0.0/24 is subnetted, 1 subnets
- D 2.2.2.0 [90/2809856] via 11.1.1.1, 00:00:20, Serial0/0 同样也有了R2的路由)
- 3.0.0.0/24 is subnetted, 1 subnets
- C 3.3.3.0 is directly connected, Loopback0
- 11.0.0.0/24 is subnetted, 1 subnets
- C 11.1.1.0 is directly connected, Serial0/0
此时验证完毕,在帧中继环境中,rip协议的水平分割是默认关闭的,而eigrp的水平分割是开启的,需要在接口下手动关闭水平分割,以防出现路由缺失问题。
评论暂时关闭