Enter configuration commands, one per line. End with CNTL/Z.
!设置路由器为帧中继模式,必须首先执行否则在设置第二个frame-relay route 语句时报错
Router(config)#frame-relay switching
Router(config)#int ser0/0
Router(config-if)#shut
Router(config-if)#encapsulation frame-relay
Router(config-if)#frame-relay lmi-type ansi
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame inverse-arp
!定义本地接口数据链路连接标识和对端接口数据链路连接标识的对应关系
Router(config-if)#frame-relay route 102 inter s0/1 201
Router(config-if)#no shu
Router(config)#int s0/1
Router(config-if)#
Router(config-if)#shut
Router(config-if)#encapsulation frmeame
Router(config-if)#frame-relay lmi-ty ansi
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame-relay inverse-arp
Router(config-if)#frame-relay route 201 interface s0/0 102
Router(config-if)#no shu
Router(config-if)#end
!检验
Router#show frame route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 102 Serial0/1 201 inactive
Serial0/1 201 Serial0/0 102 inactive
Router#