cisco学习笔记

      CCIE之路中。。。。其实我是一个天才,可惜天妒英才!o(∩_∩)o...哈哈

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  39 随笔 :: 5 文章 :: 36 评论 :: 0 Trackbacks

EIGRP水平分割实验:

拓扑图:

 

网络类型是帧中继(HUB-SPOKE),R1R2R3建立frame映射,R2只与    R1建立,R3也只与R1建立映射

配置帧中继:

R1配置:

Router>en

Router#conf t

Router(config)#hoST R1

R1(config)#no ip do lo

R1(config)#line cons 0

R1(config-line)#no exec-t

R1(config-line)#logg sync

R1(config-line)#end

R1#conf t

R1(config)#int lo 0

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#int s1/2

R1(config-if)#ip add 10.1.1.1 255.255.255.0

R1(config-if)#encapsulation frame-relay

R1(config-if)#no arp frame-relay

R1(config-if)#no frame inverse-arp

R1(config-if)#frame map ip 10.1.1.2 102 broadcast

R1(config-if)#frame map ip 10.1.1.3 103 broadcast (帧中继的标准配置)

R1(config-if)#no sh

R2配置:

R2(config-if)#int s1/2

R2(config-if)#ip add 10.1.1.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#encapsulation frame-relay

R2(config-if)#no arp frame-relay

R2(config-if)#no frame inverse-arp

R2(config-if)#frame map ip 10.1.1.1 201 broadcast

R2(config-if)#no sh

 

R3配置:

R3(config-if)#int s1/2

R3(config-if)#ip add 10.1.1.3 255.255.255.0

R3(config-if)#encapsulation frame-relay

R3(config-if)#no arp frame-relay

R3(config-if)#no frame inverse-arp

R3(config-if)#frame map ip 10.1.1.1 301 broadcast

R3(config-if)#no sh

 

查看帧中继建立情况

R1#sh frame map

Serial1/2 (up): ip 10.1.1.2 dlci 102(0x66,0x1860), static,

              broadcast,

              CISCO, status defined, active

Serial1/2 (up): ip 10.1.1.3 dlci 103(0x67,0x1870), static,

              broadcast,

              CISCO, status defined, active

R2#sh frame map

Serial1/2 (up): ip 10.1.1.1 dlci 201(0xC9,0x3090), static,

              broadcast,

              CISCO, status defined, active

R3#sh frame map

Serial1/2 (up): ip 10.1.1.1 dlci 301(0x12D,0x48D0), static,

              broadcast,

              CISCO, status defined, active

已经建立完毕

测试连通性:

R3#ping 10.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:

!!!!!(通了)

Success rate is 100 percent (5/5), round-trip min/avg/max = 48/77/96 ms

 

帧中继是有水平分割的来防环,但是 帧中继的水平分割默认是被关闭的,可查看R1S1/2接口

R1#sh ip int s1/2

Serial1/2 is up, line protocol is up

  Internet address is 10.1.1.1/24

  Broadcast address is 255.255.255.255

  Address determined by setup command

  MTU is 1500 bytes

  Helper address is not set

  Directed broadcast forwarding is disabled

  Multicast reserved groups joined: 224.0.0.9

  Outgoing access list is not set

  Inbound  access list is not set

  Proxy ARP is enabled

  Local Proxy ARP is disabled

  Security level is default

  Split horizon is disabled

  ICMP redirects are always sent

  ICMP unreachables are always sent

  ICMP mask replies are never sent

  IP fast switching is enabled

  IP fast switching on the same interface is enabled

  IP Flow switching is disabled

我们可以做这样的实验,每台路由器启动RIPR2 R3会学到对方的路由,可启动EIGRP是就不会,因为EIGRP有水平分割:

R2#sh ip route

     1.0.0.0/24 is subnetted, 1 subnets

R       1.1.1.0 [120/1] via 10.1.1.1, 00:00:04, Serial1/2

     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

R       3.3.3.0 [120/2] via 10.1.1.3, 00:00:04, Serial1/2

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial1/2

 

 

R3#sh ip route

 

     1.0.0.0/24 is subnetted, 1 subnets

R       1.1.1.0 [120/1] via 10.1.1.1, 00:00:06, Serial1/2

     2.0.0.0/24 is subnetted, 1 subnets

R       2.2.2.0 [120/2] via 10.1.1.2, 00:00:06, Serial1/2

     3.0.0.0/24 is subnetted, 1 subnets

C       3.3.3.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial1/2

有吧!!!!

现在去掉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 10.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 10.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 10.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 10.1.1.1, 00:01:33, Serial1/2  (只有R1的没有R3的吧)

     2.0.0.0/24 is subnetted, 1 subnets

C       2.2.2.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial1/2

 

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 10.1.1.1, 00:05:01, Serial1/2(也是只有R1的没R2的)

     3.0.0.0/24 is subnetted, 1 subnets

C       3.3.3.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial1/2

 

可以关闭EIGRP的水平分割

 

R1(config)#int s1/2

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 10.1.1.1, 00:00:25, Serial1/2

     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 10.1.1.1, 00:00:25, Serial1/2

     10.0.0.0/24 is subnetted, 1 subnets(有了吧!!!嘿嘿)

C       10.1.1.0 is directly connected, Serial1/2

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 10.1.1.1, 00:00:20, Serial1/2

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/2809856] via 10.1.1.1, 00:00:20, Serial1/2

     3.0.0.0/24 is subnetted, 1 subnets(也有了吧!!!!)

C       3.3.3.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Serial1/2

posted on 2008-09-11 14:00 cisco交流平台 阅读(1956) 评论(0)  编辑 收藏 引用 所属分类: EIGRP
只有注册用户登录后才能发表评论。