韩申颖比基尼:帧中继下的EIGRP水平分割解决方案实验
来源:百度文库 编辑:九乡新闻网 时间:2024/05/06 17:06:58
实验步骤:
1:在R1上的配置;
Router>
Router#en
Router#conf t
Enter configuration commands, one per line.
Router(config)#no ip domain-lo
Router(config)#lin co 0
Router(config-line)#logg s
Router(config-line)#no exec-t
Router(config-line)#ho R1
R1(config)#int s3/0
R1(config-if)#en fr
R1(config-if)#no frame-relay
R1(config-if)#no shu
R1(config-if)exit
R1(config)#int s3/0.1 multipoint
R1(config-subif)#no frame-relay inverse-arp
R1(config-subif)#ip add 192.168.123.1 255.255.255.0
R1(config-subif)#no shu
R1(config-subif)#frame-relay map ip 192.168.123.2 102 b
R1(config-subif)#frame-relay map ip 192.168.123.3 103 b
R1(config-subif)#exit
R1(config)#int lo 0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#end
2:在R2上的配置;
Router>en
Router#conf t
Enter configuration commands, one per line.
Router(config)#no ip do
Router(config)#no ip domain-lo
Router(config)#lin co 0
Router(config-line)#logg s
Router(config-line)#no exec-t
Router(config-line)#ho R2
R2(config)#int s3/0
R2(config-if)no shu
R2(config-if)#en frame
R2(config-if)#no frame-relay inv
R2(config-if)#ip add 192.168.123.2 255.255.255.0
R2(config-if)#frame map ip 192.168.123.1 201 b
R2(config-if)#exit
R2(config)#int lo 0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#router eigrp 1
R2(config-router)#net 192.168.123.0
R2(config-router)#net 2.2.2.2
R2(config-router)#no auto-summary
R2(config-router)#end
3:在R3上的配置;
Router>en
Router#conf t
Enter configuration commands, one per line.
Router(config)#no ip do
Router(config)#no ip domain-lo
Router(config)#lin co 0
Router(config-line)#logg s
Router(config-line)#no exec-t
Router(config-line)#ho R3
R3(config)#int s3/0
R3(config-if)#en frame
R3(config-if)#no frame inv
R3(config-if)#ip add 192.168.123.3 255.255.255.0
R3(config-if)#fram map ip 192.168.123.1 301 b
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#int lo 0
R3(config-if)#ip add 3.3.3.3 255.255.255.0
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#router eigrp 1
R3(config-router)#net 192.168.123.0
R3(config-router)#net 3.3.3.3
R3(config-router)#no auto-summary
R3(config-router)#end
4:在R1上查看路由信息;
R1#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
C
D
C
D
D
5:在R2上查看路由信息;
R2#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
6:在R3上查看路由信息;
R3#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
出现的问题:由于水平分割的存在,使得R2和R3之间不可以相互学习路由。
解决此问题的方法有:
第一种:常见在做法就是在R1的S30/0.1上关闭水平分割;
配置命令:R1(config)#int s3/0.1
在去查看R2的路由表
R2#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
C
D
C
D
查看R3的路由信息
R3#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
Gateway of last resort is not set
C
D
D
C
2:在R2与R3之间增加一条PVC(这样的做法在实验的过程中可以使用,实际工程中加1条PVC就会增加通信费用);
配置命令:
在R2路由器上:R2(config)#int s3/0
在R3路由器上:R3(config)#int s3/0