
第一步:配置R1,R2,R3,的frame-relay,eigrp。
R1
Router>enable
Router#conf t
Router(config)#no ip domain-loo
Router(config)#line co 0
Router(config-line)#no exec-ti
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#hostname R
R(config)#hostname R1
R1(config)#int s3/0
R1(config-if)#enca fra
R1(config-if)#no frame-relay inver
R1(config-if)#no shut
R1(config)#int s3/0.1 multipoint
R1(config-subif)#no frame-relay inverse-arp
R1(config-subif)#ip add 12.0.0.1 255.255.255.0
R1(config-subif)#frame-relay map ip 12.0.0.2 102 b
R1(config-subif)#frame-relay map ip 12.0.0.3 103 b
R1(config-subif)#exit
R1(config)#router ei 90
R1(config-router)#net 12.0.0.0
R1(config-router)#net 1.1.1.1
R1(config-router)#exit
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R2
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-loo
Router(config)#line co 0
Router(config-line)#no exec-ti
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#hostname R
R(config)#hostname R2
R2(config)#int s3/0
R2(config-if)#enca fra
R2(config-if)#no frame-relay inver
R2(config-if)#ip add 12.0.0.2 255.255.255.0
R2(config-if)#frame-relay map ip 12.0.0.1 201 b
R2(config-if)#exit
R2(config)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#router eig 90
R2(config-router)#net 12.0.0.0
R2(config-router)#net 2.2.2.2
R2(config-router)#exit
R3
Router>enable
Router#conf t
Router(config)#no ip domain-loo
Router(config)#line co 0
Router(config-line)#no exec-ti
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#hostname R
R(config)#hostname R3
R3(config)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.0
R3(config)#int s3/0
R3(config-if)#enca frame
R3(config-if)#no frame-relay inver
R3(config-if)#ip add 12.0.0.3 255.255.255.0
R3(config-if)#frame-relay map ip 12.0.0.1 301 b
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#router ei 90
R3(config-router)#net 12.0.0.0
R3(config-router)#net 3.3.3.3
R3(config-router)#no au
R3(config-router)#no auto-summary
R3(config-router)#exit
R3(config)#exit
第二步:查看R1,R2,R3的路由表。
R1
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
C 1.1.1.0 is directly connected, Loopback0
D 2.0.0.0/8 [90/2297856] via 12.0.0.2, 00:00:22, Serial3/0.1 //学到了R2的路由
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2297856] via 12.0.0.3, 00:00:22, Serial3/0.1 //学到了R3的路由
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial3/0.1
R2
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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 12.0.0.1, 00:00:02, Serial3/0 //R2只学到了R1的路由
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial3/0
R3
R3#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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 12.0.0.1, 00:03:34, Serial3/0 //R3只学到R1的路由
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial3/0
//由于EIGRP避免环路开启接口的水平分割,R2的路由更新包发到R1后,不会在从S3/0.1口在发给R3,同理R2也不会收到R3的路由更新包。所以R2,R3互相学习不了路由。
第三步:关闭R1上的S3/0.1的水平分割。
R1(config)#int s3/0.1
R1(config-subif)#no ip split-horizon eigrp 90 //关闭水平分割
第四步:再查看R2,R3的路由表。
R2
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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 12.0.0.1, 00:00:02, Serial3/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 12.0.0.1, 00:00:02, Serial3/0 //学到了到R3的路由
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial3/0
R2#
R3
R3#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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 12.0.0.1, 00:00:31, Serial3/0 //学到了到R1的路由
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2809856] via 12.0.0.1, 00:00:31, Serial3/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial3/0
R3#
上一篇:在Cisco路由器上配置路由限速试验
下一篇:帧中继下的EIGRP水平分割解决方案实验


