Frame-relay

使用帧中继搭建的广域网案例_第1张图片

实验环境

使用sisco 3640的四台.模拟实验。R6 与 R2 作为帧中继的节点。 R1 与 R3是帧中继网络的边缘路由设备。

在 R6 上的配置

R6(config)#frame-relay switching

在接口模式下封装帧中继

R6(config)#int ser 0/1

R6(config-if)#encapsulation frame-relay

R6(config-if)#frame-relay intf-type dce

R6(config-if)#clock rate 64000
选择信令格式

R6(config-if)#frame-relay lmi-type cisco

设置转发表

R6(config-if)#frame-relay route 100 interface serial 0/2 101

#从 100 管道过来的数据 转发到 0/2 口中的 101 管道

在帧中继网络节点的接口上的配置

R6(config)#int ser 0/2

因为此处使用的是 serial 线连接的路由器。

所以将线路类型设置成 dce 帧中继交换机之间使用非串口线连接。应该使用nni 这种连接类型

R6(config-if)#frame-relay intf-type dce

R6(config-if)#clock rate 64000

R6(config-if)#frame-relay lmi-type cisco #信令类型为cisco

R6(config-if)#frame-relay route 101 interface serial 0/1 100

#转发表只写针对于进口数据的转发规则。出口在对端已经指定完成。

R2上的配置

R2(config)#frame-relay switching

R2(config)#interface serial 0/1

R2(config-if)#encapsulation frame-relay

R2(config-if)#frame-relay intf-type dce

R2(config-if)#frame-relay lmi-type cisco

frame-relay route 102 interface serial 0/2 101

R2(config)#int ser 0/2

R2(config-if)#encapsulation frame-relay

R2(config-if)#frame-relay intf-type dte

R2(config-if)#frame-relay lmi-type cisco

R2(config-if)#frame-relay route 101 int ser 0/1 102

#查看管道状态

R2#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

PVC Statistics for interface Serial0/1 (Frame Relay DCE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 0 1 0 0

Unused 0 0 0 0

DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = INACTIVE, INTERFACE = Serial0/1

input pkts 0 output pkts 0 in bytes 0

out bytes 0 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 0 bits/sec, 0 packets/sec

switched pkts 0

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 00:10:49, last time pvc status changed 00:10:49

PVC Statistics for interface Serial0/2 (Frame Relay DTE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 0 1 0 0

Unused 0 0 0 0

DLCI = 101, DLCI USAGE = SWITCHED, PVC STATUS = INACTIVE, INTERFACE = Serial0/2

input pkts 0 output pkts 0 in bytes 0

out bytes 0 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

switched pkts 0

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 00:10:04, last time pvc status changed 00:10:04

在边界的路由器上的配置

R1的配置

R1(config)#interface serial 0/1

R1(config-if)#frame-relay lmi-type cisco

R1(config-if)#frame-relay intf-type dte

R1(config-if)#frame-relay map ip 192.168.1.2 100

R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2

R3 的配置

R3(config)#interface serial 0/1

R3(config-if)#frame-relay lmi-type cisco

R3(config-if)#frame-relay intf-type dte

R3(config-if)#frame-relay map ip 192.168.1.1 102

R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

使用如下命令:

show frame-relay pvc #查看vc的状态

show running  #查看网络设备的配置

保证 vc的状态为active状态

将Serial端口 执行激活命令

查看管道的状态

R1

R1#show frame-relay pvc

PVC Statistics for interface Serial0/1 (Frame Relay DTE)

Active Inactive Deleted Static

Local 1 0 0 0

Switched 0 0 0 0

Unused 0 0 0 0

DLCI = 100, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/1

input pkts 10 output pkts 18 in bytes 1040

out bytes 1662 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 3 out bcast bytes 102

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

pvc create time 00:58:08, last time pvc status changed 00:58:08

R6

R6# show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

PVC Statistics for interface Serial0/1 (Frame Relay DCE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 1 0 0 0

Unused 0 0 0 0

DLCI = 100, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1

input pkts 8 output pkts 0 in bytes 622

out bytes 0 dropped pkts 2 in pkts dropped 2

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 0 bits/sec, 0 packets/sec

switched pkts 7

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 2 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:45:07, last time pvc status changed 00:41:50

PVC Statistics for interface Serial0/2 (Frame Relay DCE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 1 0 0 0

Unused 0 0 0 0

DLCI = 101, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/2

input pkts 0 output pkts 7 in bytes 0

out bytes 588 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 0 bits/sec, 0 packets/sec

switched pkts 0

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:29:51, last time pvc status changed 00:41:34

R2

R2#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

PVC Statistics for interface Serial0/1 (Frame Relay DCE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 1 0 0 0

Unused 0 0 0 0

DLCI = 102, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/1

input pkts 0 output pkts 0 in bytes 0

out bytes 0 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

30 second input rate 0 bits/sec, 0 packets/sec

30 second output rate 0 bits/sec, 0 packets/sec

switched pkts 0

Detailed packet drop counters:

no out intf 0 out intf down 0 no out PVC 0

in PVC down 0 out PVC down 0 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:26:40, last time pvc status changed 00:00:11

PVC Statistics for interface Serial0/2 (Frame Relay DTE)

Active Inactive Deleted Static

Local 0 0 0 0

Switched 1 0 0 0

Unused 0 0 0 0

DLCI = 101, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/2

input pkts 7 output pkts 0 in bytes 588

out bytes 0 dropped pkts 14 in pkts dropped 14

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

switched pkts 0

Detailed packet drop counters:

no out intf 0 out intf down 7 no out PVC 0

in PVC down 0 out PVC down 7 pkt too big 0

shaping Q full 0 pkt above DE 0 policing drop 0

pvc create time 01:25:57, last time pvc status changed 00:47:37

R3

R3#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

PVC Statistics for interface Serial0/1 (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/1

input pkts 10 output pkts 10 in bytes 1040

out bytes 1040 dropped pkts 0 in pkts dropped 0

out pkts dropped 0 out bytes dropped 0

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0

out BECN pkts 0 in DE pkts 0 out DE pkts 0

out bcast pkts 0 out bcast bytes 0

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

pvc create time 00:37:29, last time pvc status changed 00:09:09

测试:

R1#ping 192.168.3.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/57/96 ms

R3#ping 192.168.2.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 36/76/124 ms