Router_Switchboard Configuration<15>

帧中继交换机配置

Target:

帧中继交换机配置


实验准备:

配置知识、帧中继知识。


实验设备:

路由器(带串口) 4台

V.35线缆(DTE/DCE) 3条


实验原理:

帧中继的标准可以为帧中继网络中可配置和管理的永久虚电路(PVC)进行编址,帧中继永久虚电路由数据链路连接标识符(DLCI)来标识。

当帧中继为多个逻辑数据会话提供多路复用时,ISP的交换设备首先要建立一个表,该表用来将不同的DLCI值映射到出站端口,其次,当接收到一个数据帧时,交换设备分析其连接标识符,并将该数据帧发送到相应的端口。最后,在第一个数据帧发送之前,将建立一条通往目的地的完全路径。


实验拓扑图:

153401181.png

Step:

步骤1 配置帧中继交换机。

FR(config)# frame-relay switching

FR(config)# interface Serial0/0

FR(config-if)#no ip address

FR(config-if)#encapsulation frame-relay IETF

FR(config-if)#frame-relay lmi-type ansi

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

FR(config-if)#frame-relay route 16 interface Serial0/2 37

FR(config-if)#frame-relay route 17 interface Serial0/1 26

FR(config)#interface Serial0/1

FR(config-if)#no ip address

FR(config-if)#encapsulation frame-relay IETF

FR(config-if)#frame-relay lmi-type ansi

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

FR(config-if)#frame-relay route 26 interface Serial0/0 17

FR(config-if)#frame-relay route 27 interface Serial0/2 36

FR(config)#interface Serial0/2

FR(config-if)#no ip address

FR(config-if)#encapsulation frame-relay IETF

FR(config-if)#frame-relay lmi-type ansi

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

FR(config-if)#frame-relay route 36 interface Serial0/1 27

FR(config-if)#frame-relay route 37 interface Serial0/0 16

步骤2 配置路由器。

Router A(config)# interface Serial0/0

Router A(config-if)#ip address 10.1.1.1 255.255.255.0

Router A(config-if)#encapsulation frame-relay IETF

Router A(config-if)#frame-relay interface-dlci 16

Router A(config-if)#frame-relay interface-dlci 17

实验 36 帧中继交换机配置 ・63・

Router A(config-if)#frame-relay lmi-type ansi

Router B(config)# interface Serial0/0

Router B(config-if)#ip address 10.1.1.2 255.255.255.0

Router B(config-if)#encapsulation frame-relay IETF

Router B(config-if)#frame-relay interface-dlci 26

Router B(config-if)#frame-relay interface-dlci 27

Router B(config-if)#frame-relay lmi-type ansi

Router C(config)# interface Serial0/0

Router C(config-if)# interface Serial0/0

Router C(config-if)#ip address 10.1.1.3 255.255.255.0

Router C(config-if)#encapsulation frame-relay IETF

Router C(config-if)#frame-relay interface-dlci 36

Router C(config-if)#frame-relay interface-dlci 37

Router C(config-if)#frame-relay lmi-type ansi

步骤3 验证帧中继交换机配置。

FR#show frame-relay route

Input Intf Input Dlci Output Intf Output Dlci Status

Serial0/0 16 Serial0/2 37 active

Serial0/0 17 Serial0/1 26 active

Serial0/1 26 Serial0/0 17 active

Serial0/1 27 Serial0/2 36 active

Serial0/2 36 Serial0/1 27 active

Serial0/2 37 Serial0/0 16 active

FR#show frame-relay pvc

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

Active Inactive Deleted Static

Local 0 0 0 0

Switched 2 0 0 0

Unused 0 0 0 0

DLCI = 16, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/0

input pkts 23 output pkts 22 in bytes 2170

out bytes 2140 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 23

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:21:46, last time pvc status changed 00:15:05

DLCI = 17, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0/0

input pkts 13 output pkts 12 in bytes 1130

out bytes 1100 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 13

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:21:33, last time pvc status changed 00:09:06

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

Active Inactive Deleted Static

Local 0 0 0 0

Switched 2 0 0 0

Unused 0 0 0 0

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

input pkts 12 output pkts 13 in bytes 1100

out bytes 1130 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 12

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:20:25, last time pvc status changed 00:10:06

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

input pkts 12 output pkts 13 in bytes 1100


out bytes 1130 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 12

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:20:03, last time pvc status changed 00:10:06

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

Active Inactive Deleted Static

Local 0 0 0 0

Switched 2 0 0 0

Unused 0 0 0 0

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

input pkts 13 output pkts 12 in bytes 1130

out bytes 1100 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 13

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:19:19, last time pvc status changed 00:09:09

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

input pkts 22 output pkts 23 in bytes 2140

out bytes 2170 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 22

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:19:04, last time pvc status changed 00:15:22

FR#show frame-relay lmi

LMI Statistics for interface Serial0/0 (Frame Relay DCE) LMI TYPE = ANSI

Invalid Unnumbered info 0 Invalid Prot Disc 0

Invalid dummy Call Ref 0 Invalid Msg Type 0

Invalid Status Message 0 Invalid Lock Shift 0

Invalid Information ID 0 Invalid Report IE Len 0

Invalid Report Request 0 Invalid Keep IE Len 0

Num Status Enq. Rcvd 114 Num Status msgs Sent 114

Num Update Status Sent 0 Num St Enq. Timeouts 18

LMI Statistics for interface Serial0/1 (Frame Relay DCE) LMI TYPE = ANSI

Invalid Unnumbered info 0 Invalid Prot Disc 0

Invalid dummy Call Ref 0 Invalid Msg Type 0

Invalid Status Message 0 Invalid Lock Shift 0

Invalid Information ID 0 Invalid Report IE Len 0

Invalid Report Request 0 Invalid Keep IE Len 0

Num Status Enq. Rcvd 67 Num Status msgs Sent 67

Num Update Status Sent 0 Num St Enq. Timeouts 1

LMI Statistics for interface Serial0/2 (Frame Relay DCE) LMI TYPE = ANSI

Invalid Unnumbered info 0 Invalid Prot Disc 0

Invalid dummy Call Ref 0 Invalid Msg Type 0

Invalid Status Message 0 Invalid Lock Shift 0

Invalid Information ID 0 Invalid Report IE Len 0

Invalid Report Request 0 Invalid Keep IE Len 0

Num Status Enq. Rcvd 100 Num Status msgs Sent 100

Num Update Status Sent 0 Num St Enq. Timeouts 14

Router A#show frame-relay map

Serial0/0 (up): ip 10.1.1.2 dlci 17(0x11,0x410), dynamic,

broadcast,

IETF, status defined, active

Serial0/0 (up): ip 10.1.1.3 dlci 16(0x10,0x400), dynamic,

broadcast,

IETF, status defined, active

【注意事项】

封装广域网协议时,要求V.35线缆的两个端口封装协议一致,否则无法建立链路。

【参考配置】

FR#show running-config

Building configuration...

Current configuration : 574 bytes

!

version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007 -ubu1server)

hostname FR

!

interface Serial0/0

no ip address

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay lmi-type ansi

frame-relay intf-type dce

frame-relay route 16 interface Serial0/2 37

frame-relay route 17 interface Serial0/1 26

!

interface Serial0/1

no ip address

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay lmi-type ansi

frame-relay intf-type dce

frame-relay route 26 interface Serial0/0 17

frame-relay route 27 interface Serial0/2 36

!

interface Serial0/2

no ip address

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay lmi-type ansi

frame-relay intf-type dce

frame-relay route 36 interface Serial0/1 27

frame-relay route 37 interface Serial0/0 16!

!

line con 0

line aux 0

line vty 0 4

login

!

end

Router A#show running-config

Building configuration...

Current configuration : 581 bytes

!

version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007 -ubu1server)

hostname Router A

!

interface Serial0/0

ip address 10.1.1.1 255.255.255.0

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay interface-dlci 16

frame-relay interface-dlci 17

frame-relay lmi-type ansi!

interface GigabitEthernet 0/0

duplex auto

speed auto

!

interface FastEthernet 1/0

ip address 192.168.2.1 255.255.255.0

duplex auto

speed auto

!

line con 0

line aux 0

line vty 0 4

login

!

end

Router B#show running-config

Building configuration...

Current configuration : 581 bytes

!

version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007 -ubu1server)

hostname Router B


!

interface Serial0/0

ip address 10.1.1.2 255.255.255.0

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay interface-dlci 26

frame-relay interface-dlci 27

frame-relay lmi-type ansi

!

line con 0

line aux 0

line vty 0 4

login

!

end

Router C#show running-config

Building configuration...

Current configuration : 581 bytes

!

version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007 -ubu1server)

hostname Router C

!

interface Serial0/0

ip address 10.1.1.3 255.255.255.0

encapsulation frame-relay IETF

serial restart-delay 0

frame-relay interface-dlci 36

frame-relay interface-dlci 37

frame-relay lmi-type ansi!

!

line con 0

line aux 0

line vty 0 4

login

!

end







你可能感兴趣的:(路由器,拓扑图,交换机配置)