试验拓扑说明:R1的子接口S0/0.1的IP192.168.1.1,s0/0.2的I92.168.2.1,r2的IP192.168.1.2.r3的IP192.168.2.2。
R1上s0/0.1的DLCI号102,s0/0.2的DLCI号103.
R2上s0/0的DLCI号201
R3上s0/0的DLCI号301
实验要求,在路由器完成帧中继----点到点子接口的配置,最终达到全网全通!
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
r1(config-if)#no frame-relay inverse-arp
r1(config-if)#exit
r1(config)#int s0/0.1 point-to-point
r1(config-subif)#ip addr 192.168.1.1 255.255.2550
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-dlic 103
r1(config-fr-dlci)#exit
r1(config-subif)#router 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
r2(config-if)#no frame-relay inverse-arp
r2(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
r2(config-if)#exit
r2(config)#router 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
r3(config-if)#no frame-relay inverse-arp
r3(config-if)#frame-relay map ip 192.168.2.1 301 broadcast
r3(config-if)#exit
r3(config)#router rip
r3(config-router)#network 192.168.2.0
验证一下:
在r1上ping 其它IP
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 = 62/62/63 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 = 62/62/63 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 = 62/62/63 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 = 47/59/63 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 = 110/119/125 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 = 125/125/125 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 = 31/53/63 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 = 62/62/63 ms
查看下R1的s0/0的端口信息:
r1#sh interfaces s0/0
Serial0/0 is up, line protocol is up (connected)
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation Frame Relay, loopback not set, keepalive set (10 sec)
LMI enq sent 206, LMI stat recvd 206, LMI upd recvd 0, DTE LMI up
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 1023 LMI type is CISCO frame relay DTE
Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 0
Last input never, output never, output hang never
Last clearing of \"show interface\" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
--More―
Frame Relay调试命令:
Show frame pvc
显示经过路由器的所有PVC的状态
Show frame lmi
显示本地管理接口,LMI为VC提供状态管理和广播;
Show frame map
查看当前映射项和DLCI映射表的相关信息。
Show interface
提供了相关路由器上的所有接口的信息,up ,up
注意:DCE端的时钟频率,带宽,等等设置
DTE端的线路的DLCI号与帧中继的静态映射
到这帧中继点到点子接口配置及验证完成!