帧中继学习之帧中继、帧中继映射的基本配置
原创
©著作权归作者所有:来自51CTO博客作者志兵的原创作品,请联系作者获取转载授权,否则将追究法律责任
帧中继学习之帧中继、帧中继映射的基本配置
实验拓扑:
FR的配置:
FR(config)#frame-relay switching //启用帧中继交换功能
FR(config)#int s1/0
FR(config-if)#encapsulation frame-relay
FR(config-if)#frame-relay lmi-type cisco //设置管理类型
FR(config-if)#frame-relay intf-type dce //设置为DCE路由器
FR(config-if)#clock rate 64000
FR(config-if)#frame-relay route 102 int s1/1 201 //关联两端DLCI
FR(config-if)#frame-relay route 103 int s1/2 301
FR(config-if)#no shutdown
FR(config-if)#exit
FR(config)#int s1/1
FR(config-if)#encapsulation frame-relay
FR(config-if)#frame-relay lmi-type cisco
FR(config-if)#frame-relay intf-type dce
FR(config-if)#clock rate 64000
FR(config-if)#frame-relay route 201 int s1/0 102
FR(config-if)#no shutdown
FR(config-if)#exit
FR(config-if)#int s1/2
FR(config-if)#encapsulation frame-relay
FR(config-if)#frame-relay lmi-type cisco
FR(config-if)#frame-relay intf-type dce
FR(config-if)#clock rate 64000
FR(config-if)#frame-relay route 301 int s1/0 103
FR(config-if)#no shutdown
FR(config-if)#exit
R1的配置:
R1(config)#int s1/2
R1(config-if)#encapsulation frame-relay
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no frame-relay inverse-arp //关闭反向ARP做静态映射
R1(config-if)#frame-relay map ip 192.168.1.2 102 //手工映射两端DLCI
R1(config-if)#frame-relay map ip 192.168.1.3 103
R1(config-if)#no shutdown
R2的配置:
R2(config)#int s1/2
R2(config-if)#encapsulation frame-relay
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no frame-relay inverse-arp
R2(config-if)#frame-relay map ip 192.168.1.1 201
R2(config-if)#no shutdown
R3的配置:
R3(config)#int s1/2
R3(config-if)#encapsulation frame-relay
R3(config-if)#ip address 192.168.1.3 255.255.255.0
R3(config-if)#no frame-relay inverse-arp
R3(config-if)#frame-relay map ip 192.168.1.1 301
R3(config-if)#no shutdown
验证:
1、使用PING命令
R1#
R1#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/168/240 ms
R1#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/173/192 ms
R1#
2、使用sh frame-relay map命令
R1#sh frame-relay map
Serial1/2 (up): ip 192.168.1.2 dlci 102(0x66,0x1860), static,
CISCO, status defined, active
Serial1/2 (up): ip 192.168.1.3 dlci 103(0x67,0x1870), static,
CISCO, status defined, active
R1#
3、使用sh frame-relay pvc命令
FR#sh frame-relay pvc
PVC Statistics for interface Serial1/0 (Frame Relay DCE)
Active Inactive Deleted Static
Local 0 0 0 0
Switched 2 0 0 0
Unused 0 0 0 0
DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/0
input pkts 17 output pkts 17 in bytes 1698
out bytes 1698 dropped pkts 0 in pkts dropped 0
out pkts dropped 0 out bytes dropped 0
in FECN pkts 0 in BECN pkts 0 out FECN pkts 0
out BECN pkts 0 in DE pkts 0 out DE pkts 0
out bcast pkts 0 out bcast bytes 0
switched pkts 17
Detailed packet drop counters:
no out intf 0 out intf down 0 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
shaping Q full 0 pkt above DE 0 policing drop 0
pvc create time 00:37:48, last time pvc status changed 00:21:37
……………..(略)
4、使用sh frame-relay route命令
FR#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial1/0 102 Serial1/1 201 active
Serial1/0 103 Serial1/2 301 active
Serial1/1 201 Serial1/0 102 active
Serial1/2 301 Serial1/0 103 active
FR#
验证时候发现如果R1、R2、R3、三台路由器分别在ping它们的本地地址时无法ping通
及R2与R3之间也无法ping通…
R1#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#
R2#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
....
这个主要的原因是在R1、R2、R3上没有去它们本身地址的映射,R2没有去R3的映射所以要分别添加他们的映射
在R1上配置;
R1(config-if)#frame-relay map ip 192.168.1.1 102
在R2、R3上配置
R2(config-if)#frame-relay map ip 192.168.1.3 201 //务必要在两台路由上配置达到“有去有回”
R3(config-if)#frame-relay map ip 192.168.1.2 301
验证:
R1#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 288/293/316 ms
R1#
R2#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 288/336/408 ms
R2#
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
帧中继基本配置和帧中继映射
&n
职场 休闲 帧中继 -
【帧中继】帧中继基础配置
帧中继的基础原理和配置
原理 帧中继 frame-relay DLCI 反向arp -
帧中继的配置
本文是学习笔记,其中R2- R3的互访线路,除了用fr 映射,还可以用静态路由互通,那么这个静态路由究竟是ensp的bug还是现实网络真的可以这样实现?求大佬讲解
映射关系 链路 静态路由 帧中继 ensp