免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1503 | 回复: 0
打印 上一主题 下一主题

CCNA之七:帧中继链路上运行EIGRP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-18 11:39 |只看该作者 |倒序浏览

帧中继链路上运行EIGRP

环境:三台路由器通过串行接口相连。
   要求:配置R2为帧中继交换机,使R1和R3运行在帧中继网络上;
         在R1和R3分别启用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


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1526/showart_1968447.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP