分类: 系统运维
2009-06-19 17:05:16
环境:两台路由器,由串口相连。
要求:用两台路由器来模拟帧中继环境,fr-sw为帧中继交换机,并使用静态路由使网络联通。
步骤一:配置帧中继及联通性
fr-sw的配置:
fr-sw (config)#frame-relay switching à启用帧中继交换机
fr-sw (config)#interface loopback 0
fr-sw (config-if)#ip address
fr-sw (config-if)#interface serial 0
fr-sw (config-if)#encapsulation frame-relay à封装帧中继
fr-sw (config-if)#frame-relay intf-type dce à时钟提供端
fr-sw (config-if)#clock rate 64000
fr-sw (config-if)#ip address
fr-sw (config-if)#frame-relay map i
fr-sw (config-if)#frame-relay map i
fr-sw (config-if)#no shutdown
r2的配置
r2(config)#interface loopback 0
r2(config-if)#ip address
r2(config-if)#interface serial0
r2(config-if)#encapsulation frame-relay
r2(config-if)#ip address
r2(config-if)#frame-relay map i
r2(config-if)#frame-relay map i
r2(config-if)#no shutdown
步骤二、配置路由
fr-sw (config)#ip route
r2(config)#ip route
步骤三、测试
fr-sw #ping ip
Target IP address:
Extended commands [n]: y
Source address or interface:
!!!!!
r2#ping
Protocol [ip]:
Target IP address:
Extended commands [n]: y
Source address or interface:
!!!!!
步骤四、查看状态
fr-sw的帧中继状态
fr-sw #show frame-relay pvc à查看PVC状态
PVC Statistics for interface Serial0 (Frame Relay DCE)
Active Inactive Deleted Static
Local 1 0 0 0
Switched 0 0 0 0
Unused 0 0 0 0
DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0
input pkts 69 output pkts
out bytes 5052 dropped pkts
out pkts dropped 0 out bytes dropped 0
in FECN pkts
out BECN pkts
out bcast pkts 0 out bcast bytes 0
pvc create time 00:48:44, last time pvc status changed 00:47:23
fr-sw #show frame-relay map à查看帧中继映射
Serial0 (up): i
broadcast,
CISCO, status defined, active
Serial0 (up): i
broadcast,
CISCO, status defined, active
r2帧中继的状态:
r2#show frame-relay pvc à显示PVC状态
PVC Statistics for interface Serial0 (Frame Relay DTE)
Active Inactive Deleted Static
Local 1 0 0 0
Switched 0 0 0 0
Unused 0 0 0 0
DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0
input pkts 26 output pkts
out bytes 3137 dropped pkts
out pkts dropped 0 out bytes dropped 0
in FECN pkts
out BECN pkts
out bcast pkts 9 out bcast bytes 477
pvc create time 00:20:07, last time pvc status changed 00:20:07
r2#show frame-relay map à显示帧中继映射
Serial0 (up): i
broadcast,
CISCO, status defined, active
Serial0 (up): i
broadcast,
CISCO, status defined, active
步骤五、显示当前配置
fr-sw的当前配置:
fr-sw #show running-config
hostname fr-sw
!
frame-relay switching
!
!
!
interface Loopback0
ip address
!
interface Serial0
ip address
encapsulation frame-relay
clockrate 64000
frame-relay map i
frame-relay map i
frame-relay intf-type dce
!
ip route
!
end
r2的当前配置:
r2#show running-config
hostname r2
!
!
interface Loopback0
ip address
!
interface Serial0
ip address
encapsulation frame-relay
frame-relay map i
frame-relay map i
!
ip route
!
end