Chinaunix首页 | 论坛 | 博客
  • 博客访问: 565140
  • 博文数量: 88
  • 博客积分: 7206
  • 博客等级: 少将
  • 技术积分: 1162
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 16:04
文章分类

全部博文(88)

文章存档

2011年(3)

2010年(24)

2009年(16)

2008年(45)

分类: 系统运维

2009-06-18 11:39:29

帧中继链路上运行EIGRP

 

 环境:三台路由器通过串行接口相连。

   要求:配置R2为帧中继交换机,使R1R3运行在帧中继网络上;

         R1R3分别启用loop0口,并且运行EIGRP路由选择协议。

 

步骤一、帧中继的配置

 

fr-sw的配置:

fr-sw(config)#frame-relay switching       à启用帧中继交换机

fr-sw(config)#interface serial0

fr-sw(config-if)#clock rate 64000

fr-sw(config-if)#encapsulation frame-relay  à接口封装帧中继

fr-sw(config-if)#frame-relay intf-type dce   à类型DCE

fr-sw(config-if)#frame-relay route 301 interface s1 103  à指定路由

fr-sw(config-if)#no shutdown

 

fr-sw(config-if)#interface serial1

fr-sw(config-if)#encapsulation frame-relay

fr-sw(config-if)#clock rate 64000

fr-sw(config-if)#frame-relay intf-type dce

fr-sw(config-if)#frame-relay route 103 inter s0 301

fr-sw(config-if)#no shutdown

 

 

r1的配置:

r1(config)#interface serial0

r1(config-if)#encapsulation frame-relay      à接口封装帧中继

r1(config-if)#ip address 30.1.1.1 255.255.255.0

r1(config-if)# frame-relay map ip 30.1.1.3 103 broadcast   à指定静态映射

r1(config-if)#no frame-relay inverse-arp à关闭逆向ARP

r1(config-if)#no shutdown

 

r3的配置:

r3(config)#interface s1

r3(config-if)#encapsulation frame-relay

r3(config-if)#ip add 30.1.1.3 255.255.255.0

r3(config-if)# frame-relay map ip 30.1.1.1 301 broadcast   

r3(config-if)#no frame-relay inverse-arp

r3(config-if)#no shutdown

 

步骤二、查看帧中继的状态及联通性测试

 

r3的查看:

r3#show frame-relay pvc     à显示永久虚电路

 

PVC Statistics for interface Serial1 (Frame Relay DTE)

 

              Active     Inactive      Deleted       Static

  Local          1            0            0            0

  Switched       0            0            0            0

  Unused         0            0            0            0

 

DLCI = 301, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial1

 

r3#show interface s1  à显示接口封装及状态

Serial1 is up, line protocol is up

  Hardware is HD64570

  Internet address is 30.1.1.3/24

  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation FRAME-RELAY, loopback not set

 

r3#show frame-relay map     à显示映射

Serial1 (up): ip 30.1.1.1 dlci 301(0x12D,0x48D0), static,

              broadcast,, status defined, active

 

测试帧中继连通性:

r1#ping 30.1.1.3

 

Type escape sequence to abort.

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

!!!!!

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

 

 

步骤三、启用回环口,配置EIGRP路由

 

r1(config)#interface loopback 0

r1(config-if)#ip address 10.1.1.1 255.255.255.0

r1(config-if)#

r1(config-if)#`router eigrp 100  à启用路由协议

r1(config-router)#network 10.1.1.0 0.0.0.255  à发布直联网段

r1(config-router)#network 30.1.1.0 0.0.0.255

r1(config-router)#no auto-summary    à关闭自动汇总

r1(config-router)#

 

r3(config)#interface loopback 0

r3(config-if)#ip address 20.1.1.1 255.255.255.0

r3(config-if)#router eigrp 100

r3(config-router)#network 20.1.1.0 0.0.0.255

r3(config-router)#network 30.1.1.0 0.0.0.255

r3(config-router)#no auto-summary

r3(config-router)#

 

步骤四、显示学习到的路由

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

 

     20.0.0.0/24 is subnetted, 1 subnets

D       20.1.1.0 [90/2297856] via 30.1.1.3, 00:00:38, Serial0

     10.0.0.0/24 is subnetted, 1 subnets

C       10.1.1.0 is directly connected, Loopback0

     30.0.0.0/24 is subnetted, 1 subnets

C       30.1.1.0 is directly connected, Serial0

 

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

 

     20.0.0.0/24 is subnetted, 1 subnets

C       20.1.1.0 is directly connected, Loopback0

     10.0.0.0/24 is subnetted, 1 subnets

D       10.1.1.0 [90/2297856] via 30.1.1.1, 00:00:00, Serial1

     30.0.0.0/24 is subnetted, 1 subnets

C       30.1.1.0 is directly connected, Serial1

 

步骤五、显示当前配置

 

fr-sw的当前配置:

fr-sw#show running-config

hostname fr-sw

!

no ip domain-lookup

!

frame-relay switching

!

interface Serial0

 no ip address

 encapsulation frame-relay

 clockrate 64000

 frame-relay intf-type dce

 frame-relay route 301 interface Serial1 103

!

interface Serial1

 no ip address

 encapsulation frame-relay

 clockrate 64000

 frame-relay intf-type dce

 frame-relay route 103 interface Serial0 301

!

end

 

r1的当前配置:

r1#show running-config

!

hostname r1

!

no ip domain-lookup

!

interface Loopback0

 ip address 10.1.1.1 255.255.255.0

!

interface Serial0

 ip address 30.1.1.1 255.255.255.0

 encapsulation frame-relay

 frame-relay map ip 30.1.1.3 103 broadcast

 no frame-relay inverse-arp

!

router eigrp 100

 network 10.1.1.0 0.0.0.255

 network 30.1.1.0 0.0.0.255

 no auto-summary

end

 

r3的当前配置:

r3#show running-config

hostname r3

!

interface Loopback0

 ip address 20.1.1.1 255.255.255.0

!

interface Serial1

 ip address 30.1.1.3 255.255.255.0

 encapsulation frame-relay

 frame-relay map ip 30.1.1.1 301 broadcast

 no frame-relay inverse-arp

 

!

router eigrp 100

 network 20.1.1.0 0.0.0.255

 network 30.1.1.0 0.0.0.255

 no auto-summary

!

end

阅读(1119) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~