R1 IP 192.168.10.1/24
R3
IP
192.168.10.2/24
R2 配置
r2(config)#frame-relay switching
r2(config)#interface serial 0/0
r2(config-if)#no shut
r2(config-if)#encapsulation frame-relay
r2(config-if)#frame-relay intf-type dce
r2(config-if)#frame-relay route 102 int s0/1 201
r2(config-if)#exit
r2(config)#int s0/1
r2(config-if)#no shut
r2(config-if)#encapsulation frame-relay
r2(config-if)#frame-relay intf-type dce
r2(config-if)#frame-relay route 201 int s0/0 102
r2#show frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 102 Serial0/1 201 active
Serial0/1 201 Serial0/0 102 active
R1 配置
r1(config)#int s0/0
r1(config-if)#no shut
r1(config-if)#encapsulation frame-relay
r1(config-if)#frame-relay inverse-arp
r1(config-if)#ip add 192.168.10.1 255.255.255.0
r1(config-if)#end
r1(config)#int s0/0
r1(config-if)#frame-relay map ip 192.168.10.1 102 b
r1(config-if)#end
R3 配置
r3(config)#int s0/0
r3(config-if)#no shut
r3(config-if)#encapsulation frame-relay
r3(config-if)#frame-relay inverse-arp
r3(config-if)#ip add 192.168.10.2 255.255.255.0
r3(config-if)#end
r3(config)#int s0/0
r3(config-if)#frame-relay map ip 192.168.10.2 201 b
r3(config-if)#end
r1#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/130/220 ms
r1#ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/61/108 ms
r3#ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/72/124 ms
r3#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/60/108 ms