帧中继Frame-Relay动态映射
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验3 帧中继Frame-Relay动态映射
【实验名称】
帧中继Frame-Relay动态映射
【实验目的】
掌握利用动态映射Inverse-ARP方式实现Frame-relay连接。
【背景描述】
你是公司的网管,公司的网络运行在Frame-Relay上,需要简单的实现Frame-Relay中各个接口的互联。
【实现功能】
地址映射动态自动学习配置,反映远端设备的IP地址和本地DLCI的对应关系。
【实验拓扑】
【实验设备】
R2620或R2624路由器(4台)、m2602AS同异步接口模块一个、V35DCE(3根)、V35DTE (3根)
【实验步骤】
第一步:基本配置,配置帧中继交换机
Red-Giant>enable
Red-Giant(config)#hostname FR
FR(config)#frame-relay switching ! 路由器模拟成帧中继交换机
FR(config)#interface serial 0 !进入广域网接口serial 0
FR(config-if)#encapsulation frame-relay ietf ! 封装帧中继并封装其格式为ietf
FR(config-if)#frame-relay intf-type dce !封装帧中继接口类型为dce
FR(config-if)#frame-relay lmi-ty ansi ! 定义帧中继本地接口管理类型
FR(config-if)#cloclk rate 64000 !定义时钟速率
FR(config-if)#fram route 20 interface serial 1 21!设定帧中继交换,指定两个同步口之间的dlci 互换
FR(config-if)#fram route 30 interface serial 3 31!设定帧中继交换,指定两个同步口之间的dlci 互换
FR(config-if)#no sh !启用该接口
FR(config-if)#end
FR(config)#int serial 1
FR(config-if)#encapsulation frame-relay ietf
FR(config-if)#frame-relay intf-type dce
FR(config-if)#frame-relay lmi-ty ansi
FR(config-if)#cl ock rate 64000
FR(config-if)#frame-relay route 21 interface serial 0 20
FR(config-if)#frame-relay route 23 interface serial 3 32
FR(config-if)#no sh
FR(config-if)#end
FR(config)#conf t
FR(config)#int serial 3
FR(config-if)#encapsulation frame-relay ietf
FR(config-if)#frame-relay intf-type dce
FR(config-if)#frame-relay lmi-type ansi
FR(config-if)#clock rate 64000
FR(config-if)#frame-relay route 31 interface serial 0 30
FR(config-if)#frame-relay route 32 interface serial 1 23
验证测试:FR#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0 20 Serial1 21 inactive
Serial0 30 Serial3 31 inactive
Serial1 21 Serial0 20 inactive
Serial1 23 Serial3 32 inactive
Serial3 31 Serial0 30 inactive
Serial3 32 Serial1 23 inactive
第二步:帧中继Frame-Relay动态映射
R1#conf t
R1(config)#int s0
R1(config-if)#ip add 192.168.123.1 255.255.255.0
R1(config-if)#encapsulation frame-relay ietf ! 封装帧中继并封装其格式为ietf
R1(config-if)#frame-relay inverse-arp !动态学习IP和DLCI映射自动打开R1(config-if)# no sh
R1(config-if)#end
Red-Giant(config)#hostname R2
R2(config)#int s0
R2(config-if)#ip add 192.168.123.2 255.255.255.0
R2(config-if)#encapsulation frame-relay ietf
R2(config-if)#frame-relay inverse-arp
R2(config-if)#frame-relay lmi-type ansi
R2(config-if)#no sh
R2(config-if)#end
Red-Giant(config)#hostname R3
R3(config)#int s1
R3(config-if)# ip add 192.168.123.3 255.255.255.0
R3(config-if)# encapsulation frame-relay ietf
R3(config-if)# frame-relay lmi-ty ansi
R3(config-if)# frame-relay inverse-arp
R3(config-if)#no sh
验证测试:R3#sh fram map
Serial1 (up): ip 192.168.123.1 dlci 31(0x1F,0x4F0), dynamic,
broadcast,
IETF, status defined, active
Serial1 (up): ip 192.168.123.2 dlci 32(0x20,0x800), dynamic,
broadcast,
IETF, status defined, active
R2#sh frame-relay map
Serial0 (up): ip 192.168.123.1 dlci 21(0x15,0x450), dynamic,
broadcast,
IETF, status defined, active
Serial0 (up): ip 192.168.123.3 dlci 23(0x17,0x470), dynamic,
broadcast,
IETF, status defined, active
R1#sh frame-relay map
Serial0 (up): ip 192.168.123.2 dlci 20(0x14,0x440), dynamic,
broadcast,
IETF, status defined, active
Serial0 (up): ip 192.168.123.3 dlci 30(0x1E,0x4E0), dynamic,
broadcast,
IETF, status defined, activeFR#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status Serial0 20 Serial1 21 active Serial0 30 Serial3 31 active Serial1 21 Serial0 20 active Serial1 23 Serial3 32 active Serial3 31 Serial0 30 active Serial3 32 Serial1 23 active
第三步:测试各点之间的连通性
验证测试:
R1#ping 192.168.123.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echoes to 192.168.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/60 ms
R1#ping 192.168.123.3
Sending 5, 100-byte ICMP Echoes to 192.168.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/60 ms
【注意事项】
●动态映射是自动开启的,无需配置;
●要配置封装frame-relay和接口IP地址。
【参考配置】
R1#sh run
Current configuration:
!
version 6.14(2)
!
hostname "R1"
!
ip subnet-zero
!
interface FastEthernet0
no ip address
shutdown
!
interface Serial0
ip address 192.168.123.1 255.255.255.0 encapsulation frame-relay IETF
frame-relay lmi-type ansi
frame-relay inverse-arp
!
interface Serial1
no ip address
shutdown
!
voice-port 0
!
voice-port 1
!
voice-port 2
!
voice-port 3
ip classless
!
line con 0
line aux 0
line vty 0 4
login
!
end
R2#sh run
Current configuration:
!
version 6.14(2)
!
hostname "R2"
!
ip subnet-zero
!
interface FastEthernet0
no ip address
shutdown
!
interface FastEthernet1
no ip address
shutdown
!
interface FastEthernet2
no ip address
shutdown
!
interface FastEthernet3
no ip address
shutdown
!
interface Serial0
ip address 192.168.123.2 255.255.255.0 encapsulation frame-relay IETF
frame-relay lmi-type ansi
frame-relay inverse-arp
!
interface Serial1
no ip address
shutdown
!
ip classless
!
line con 0
line aux 0
!
end
R3#sh run
Current configuration:
!
version 6.14(2)
!
hostname "R3"
!
ip subnet-zero
!
interface FastEthernet0
no ip address
shutdown
!
interface FastEthernet1
no ip address
shutdown
!
interface FastEthernet2
no ip address
shutdown
interface FastEthernet3
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
!
interface Serial1
ip address 192.168.123.3 255.255.255.0 encapsulation frame-relay IETF
frame-relay lmi-type ansi
frame-relay inverse-arp
ip classless
!
line con 0
line aux 0
line vty 0 4
login
!
end。