韩申颖比基尼:帧中继下的EIGRP水平分割解决方案实验

来源:百度文库 编辑:九乡新闻网 时间:2024/05/06 17:06:58

 

实验步骤:

1:在R1上的配置;
Router>
Router#en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
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  inverse-arp
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.  End with CNTL/Z.
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.  End with CNTL/Z.
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
       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

   192.168.123.0/24 is directly connected, Serial3/0.1
     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      1.0.0.0/8 is a summary, 00:01:33, Null0
      1.1.1.0/24 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 [90/2297856] via 192.168.123.2, 00:01:28, Serial3/0.1
     3.0.0.0/24 is subnetted, 1 subnets
      3.3.3.0 [90/2297856] via 192.168.123.3, 00:00:59, Serial3/0.1

5:在R2上查看路由信息;

R2#sho 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

6:在R3上查看路由信息;

R3#sho 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

出现的问题:由于水平分割的存在,使得R2R3之间不可以相互学习路由。

解决此问题的方法有:

第一种:常见在做法就是在R1S30/0.1上关闭水平分割;

配置命令:R1(config)#int s3/0.1
          R1(config-subif)#no ip split-horizon eigrp 1 

在去查看R2的路由表

R2#sho 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

   192.168.123.0/24 is directly connected, Serial3/0
   1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:01:29, Serial3/0
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 is directly connected, Loopback0
     3.0.0.0/24 is subnetted, 1 subnets
      3.3.3.0 [90/2809856] via 192.168.123.1, 00:00:38, Serial3/0   R2已经学习到了R3的路由信息

查看R3的路由信息

R3#sho 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

   192.168.123.0/24 is directly connected, Serial3/0
   1.0.0.0/8 [90/2297856] via 192.168.123.1, 00:03:24, Serial3/0
     2.0.0.0/24 is subnetted, 1 subnets
      2.2.2.0 [90/2809856] via 192.168.123.1, 00:03:24, Serial3/0    R3上同样学习到了R2的路由信息
     3.0.0.0/24 is subnetted, 1 subnets
      3.3.3.0 is directly connected, Loopback0

2:在R2R3之间增加一条PVC(这样的做法在实验的过程中可以使用,实际工程中加1PVC就会增加通信费用)

配置命令:             
R2路由器上:R2(config)#int s3/0
                          R2(config-if)#frame-relay map ip 192.168.123.3 203 b
                          R2(config-if)#end

在R3路由器上:R3(config)#int s3/0
                          R3(config-if)#frame-relay map ip 192.168.123.2 302 b
                          R3(config-if)#end