Router2 S0/1 <----> Router3 S0/0
r2(config-if)#encapsulation frame-relay (接口封装为帧中继)
r2(config-if)#frame-relay intf-type dce (接口配置成DCE终端)
r2(config-if)#clock rate 64000 (DCE同步时钟)
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#in s0/1
r2(config-if)#encapsulation frame-relay
r2(config-if)#frame-relay intf-type dce
r2(config-if)#clock rate 64000
r2(config-if)#no sh
r2(config-if)#exit
r2(config-if)#frame-relay route 102 interface s0/1 201 (配置帧中继路由)
r2(config-if)#no sh
r2(config-if)#exit
r2(config-if)#frame-relay route 201 interface s0/0 102 (配置帧中继路由)
r2(config-if)#no sh
r2(config-if)#exit
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 102 Serial0/1 201 inactive
Serial0/1 201 Serial0/0 102 inactive
Interface IP-Address OK? Method Status Protocol
Serial0/0 unassigned YES unset up down
Serial0/1 unassigned YES unset up down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
r1(config-if)#encapsulation frame-relay
r1(config-if)#no frame-relay inverse-arp (关掉反向ARP)
r1(config-if)#ip add 192.168.1.1 255.255.255.0
r1(config-if)#frame-relay map ip 192.168.1.2 102 broadcast (帧中继映射)
r1(config-if)#no sh
r1(config-if)#exit
Interface IP-Address OK? Method Status Protocol
Serial0/0 192.168.1.1 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
r1#
*Mar 1 00:22:47.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Serial0/0 (up): ip 192.168.1.2 dlci 102(0x66,0x1860), static,
broadcast,
CISCO, status defined, inactive
r3(config-if)#encapsulation frame-relay
r3(config-if)#no frame-relay inverse-arp
r3(config-if)#ip add 192.168.1.2 255.255.255.0
r3(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
r3(config-if)#no sh
r3(config-if)#exit
r3(config)#exit
Interface IP-Address OK? Method Status Protocol
Serial0/0 192.168.1.2 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
broadcast,
CISCO, status defined, active
broadcast,
CISCO, status defined, active
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 = 44/96/184 ms
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r3#ping 192.168.1.1
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 = 60/104/172 ms
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r1(config-if)#frame-relay map ip 192.168.1.1 102 broadcast (通向本身的帧中继映射)
r1(config-if)#no sh
r1(config-if)#exit
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 = 128/202/264 ms
r1#
r3(config)#in s0/0
r3(config-if)#frame-relay map ip 192.168.1.2 201 broadcast (通向本身的帧中继映射)
r3(config-if)#no sh
r3(config-if)#exit
r3(config)#exit
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 = 108/146/264 ms