帧中继学习之帧中继、帧中继映射的基本配置

帧中继学习之帧中继、帧中继映射的基本配置
 
 
 
实验拓扑:
 
 
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#
 

你可能感兴趣的:(职场,休闲,ccnp,帧中继)