实验过程: 第一步:配置R1为帧中继交换机 R1(config)#fr swi (封装为帧中继交换机,非常重要的一步) **R1(config)#int s1/2 R1(config-if)#en fr R1(config-if)#frame-relay intf-type dce (帧中继接口类型为DCE) R1(config-if)#frame-relay route 23 interface s1/3 32 ** (配置本地dlci为23,出口为s1/3,dlci为32) R1(config-if)#no sh R1(config-if)#int s1/3 R1(config-if)#en fr R1(config-if)#frame-relay intf-type dce R1(config-if)#frame-relay R1(config-if)#frame-relay route 32 interface s1/2 23 R1(config-if)# R1(config-if)#no sh R1(config-if)#exit 第二步:查看R1的帧中继路由 R1#sh fr rou Input Intf Input Dlci Output Intf Output Dlci Status Serial1/2 23 Serial1/3 32 inactive Serial1/3 32 Serial1/2 23 inactive R1#   第三步:查看R2和R3帧中继接口 R2(config)# R2(config)#int s2/1 R2(config-if)#en fr R2(config-if)#no sh R2(config-if)#ip add 10.0.0.2 255.255.255.0 R2(config-if)#exit

R3(config)#int s3/1 R3(config-if)#en fr R3(config-if)#no sh R3(config-if)#ip add 10.0.0.3 255.255.255.0 R3(config-if)#exit R3(config)# R3(config)#^Z

第四步:现在在R2、R3帧中继客户端上查看frame-relay map

R2#sh fr map Serial2/1 (up): ip 10.0.0.3 dlci 23(0x17,0x470), dynamic, broadcast,, status defined, active R2#

R3#sh fr map Serial3/1 (up): ip 10.0.0.2 dlci 32(0x20,0x800), dynamic, broadcast,, status defined, active R3#

第五步:测试客户端互通 R2#ping 10.0.0.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/41/104 ms R2#

R3# R3#ping 10.0.0.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/48/96 ms Over