拓扑图 帧中继部署: 1、 进入所有路由器及帧中继的接口,将接口封装为FR,在物理层DCE端输入时钟以及在所有接口上使用no shut 接口封装为FR命令:FR(config-if)#encapsulation frame-relay (如果需要配置公有模式,请在命令后面加 ietf) FR(config-if)#no shut R1、R2、R3配置类似,这里不再赘述。 相应的DCE端配置时钟,由于使用GNS3模拟器,模拟器自身问题不需要配置,但是实际的设备必须配置。 注意这里的DCE是本身物理接口的属性,也就是osi七层中物理层的特性。 2、 将中间路由器模拟成为帧中继交换机,然后在帧中继交换机的所有串行接口配置二层DCE接口 将中间路由器模拟成为帧中继交换机命令:FR(config)#frame-relay switching 帧中继交换机的所有串行接口配置二层DCE接口命令:FR(config-if)#frame-relay intf-type dce 3、 在帧中继交换机定义LMI类型 帧中继交换机的所有串行接口定义LMI类型FR(config-if)#frame-relay lmi-type cisco 4、 在帧中继交换机上分发DLCI并建立PVC 帧中继交换机: FR(config)#int s 1/1 FR(config-if)#frame-relay route 102 int serial 1/2 201 FR(config-if)#frame-relay route 103 int serial 1/3 301 FR(config)#int s 1/2 FR(config-if)#frame-relay route 201 int serial 1/1 102 FR(config)#int s 1/3 FR(config-if)#frame-relay route 301 int serial 1/1 103 大概一分钟后,使用show命令查看映射情况 在帧中继交换机上 FR#show frame-relay pvc (只复制下一部分show结果) PVC Statistics for interface Serial1/1 (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/1 PVC Statistics for interface Serial1/2 (Frame Relay DCE) Active Inactive Deleted Static Local 0 0 0 0 Switched 1 0 0 0 Unused 0 0 0 0 DLCI = 201, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1/2 PVC Statistics for interface Serial1/3 (Frame Relay DCE) Active Inactive Deleted Static Local 0 0 0 0 Switched 1 0 0 0 Unused 0 0 0 0 FR#show frame-relay route Input Intf Input Dlci Output Intf Output Dlci Status Serial1/1 102 Serial1/2 201 active Serial1/1 103 Serial1/3 301 active Serial1/2 201 Serial1/1 102 active Serial1/3 301 Serial1/1 103 active 在其他路由器(以R1为例) R1#show frame-relay pvc PVC Statistics for interface Serial1/1 (Frame Relay DTE) Active Inactive Deleted Static Local 0 0 0 0 Switched 0 0 0 0 Unused 2 0 0 0 R1#show frame-relay map Serial1/1 (up): ip 100.1.1.2 dlci 102(0x66,0x1860), dynamic, broadcast,, status defined, active Serial1/1 (up): ip 100.1.1.3 dlci 103(0x67,0x1870), dynamic, broadcast,, status defined, active 5、 在客户端配置同一网段的IP地址 按照拓扑图表示配置,配置完毕在路由器上查看PVC信息(以R1为例) R1#show frame-relay pvc PVC Statistics for interface Serial1/1 (Frame Relay DTE) Active Inactive Deleted Static Local 2 0 0 0 (由于配置了IP地址,PVC类型改为LOCAL,说明可发送报文) Switched 0 0 0 0 Unused 0 0 0 0 完成这些配置在R1做验证 R1#ping 100.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 80/118/196 ms R1#ping 100.1.1.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.1.1.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/104/196 ms R2与R3之间验证不通 6、R2与R3之间创建手工映射 R2(config-if)#frame-relay map ip 100.1.1.3 201 cisco broadcast R3(config-if)#frame-relay map ip 100.1.1.2 301 cisco broadcast 验证 R3#ping 100.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 120/180/376 ms R3#traceroute 100.1.1.2 Type escape sequence to abort. Tracing the route to 100.1.1.2 1 100.1.1.1 184 msec 156 msec 108 msec 2 100.1.1.2 172 msec * 168 msec |