试验拓扑说明:
R1
的物理接口不添加
IP
。
R1
的子接口
S0/0.1
的
ip
为
192.168.1.1
,
S0/0.2
的
ip
为
192.168.2.1
。
R2
的
ip
为
192.168.1.2
。
R3
的
ip
为
192.168.2.2
网络掩码都为
255.255.255.0
。
R1
上
S0/0.1
的
DLCI
号为
102
,
S0/0.2
的
DLCI
号为
103.
R2
上
S0/0
的
DLCI
号为
201
R3
上
S0/0
的
DLCI
号为
301
试验要求:在路由器间完成帧中继――点到点子接口的配置,并在路由器间配置
rip
协议,最终使路由器间全网全通。
Let’s go……
R1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r1
r1(config)#int s0/0
r1(config-if)#no ip addr
r1(config-if)#no shut
r1(config-if)#encapsulation frame-relay
在物理接口下封装
frame-relay
r1(config-if)#no frame-relay inverse-arp
关闭帧中继的反向
ARP
功能
r1(config-if)#exit
r1(config)#int s0/0.1 point-to-point
配置点到点的
frame-relay
r1(config-subif)#ip addr 192.168.1.1 255.255.255.0
r1(config-subif)#no shut
r1(config-subif)#frame-relay interface-dlci 102
r1(config-fr-dlci)#exit
r1(config-subif)#int s0/0.2 point-to-point
r1(config-subif)#ip addr 192.168.2.1 255.255.255.0
r1(config-subif)#no shut
r1(config-subif)#frame-relay interface-dlci 103
r1(config-fr-dlci)#exit
r1(config-subif)#router rip
配置
rip
协议
r1(config-router)#network 192.168.1.0
r1(config-router)#network 192.168.2.0
R2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r2
r2(config)#int s0/0
r2(config-if)#ip addr 192.168.1.2 255.255.255.0
r2(config-if)#no shut
r2(config-if)#encapsulation frame-relay
封装
frame-relay
r2(config-if)#no frame-relay inverse-arp
关闭
frame-relay
的反向
ARP
功能
r2(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
映射
ip
地址与帧中继地址
r2(config-if)#exit
r2(config)#router rip
配置
rip
协议
r2(config-router)#network 192.168.1.0
R3
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r3
r3(config)#int s0/0
r3(config-if)#ip addr 192.168.2.2 255.255.255.0
r3(config-if)#no shut
r3(config-if)#encapsulation frame-relay
封装
frame-relay
r3(config-if)#no frame-relay inverse-arp
关闭
frame-relay
的反向
arp
功能
r3(config-if)#frame-relay map ip 192.168.2.1 301 broadcast
映射
ip
地址与帧中继地址
r3(config-if)#exit
r3(config)#router rip
配置
rip
协议
r3(config-router)#network 192.168.2.0
验证:
r1#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/156/364 ms
r1#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 156/292/404 ms
r2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/386/544 ms
r2#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 = 180/432/636 ms
r2#ping 192.168.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/430/580 ms
r3#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 456/519/592 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 = 152/434/584 ms
r3#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/309/456 ms
通过验证,全网全通。
在
R1
上
show interface S0/0
查看端口信息
r1#show interface s0/0
Serial0/0 is up, line protocol is up
Hardware is M4T
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
LMI enq sent 12, LMI stat recvd 13, LMI upd recvd 0, DTE LMI up
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 0 LMI type is ANSI Annex D frame relay DTE
FR SVC disabled, LAPF state down
Broadcast queue 0/64, broadcasts sent/dropped 15/0, interface broadcasts 11
Last input 00:00:02, output 00:00:03, output hang never
Last clearing of "show interface" counters 00:02:03
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)ilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
20 packets input, 704 bytes, 0 no buffer
--More―
在
R1
上
show frame pvc
查看经过路由器的所有
PVC
的状态
r1#show frame pvc
PVC Statistics for interface Serial0/0 (Frame Relay DTE)
Active Inactive Deleted Static
Local 2 0 0 0
Switched 0 0 0 0
Unused 0 0 0 0
DLCI = 102, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0.1
input pkts 10 output pkts 18 in bytes 740
out bytes 2273 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 17 out bcast bytes 2217
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
pvc create time 00:04:47, last time pvc status changed 00:04:47
--More--
Frame Relay
调试命令
•
Show frame pvc
•
显示经过路由器的所有PVC
的状态
•
Show frame lmi
•
显示本地管理接口,LMI
为VC
提供状态管理和广播;
•
Show frame map
•
查看当前映射项和DLCI
映射表的相关信息。
•
Show interface
•
提供了相关路由器上的所有接口的信息,up ,up
•
注意:DCE
端的时钟频率,带宽,等等设置
•
DTE
端的线路的DLCI
号与帧中继的静态映射。