R1配置
r1(config)#int s3/0
r1(config-if)#en fr
r1(config-if)#ip ad 192.168.0.1 255.255.255.0
r1(config-if)#no sh】
查看LMI类型
r1#sh int s3/0
Serial3/0 is up, line protocol is up
Hardware is M4T
Internet address is 192.168.0.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation FRAME-RELAY, crc 16, loopback not set, keepalive set (10 sec)
LMI enq sent 15, LMI stat recvd 16, 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
Broadcast queue 0/64, broadcasts sent/dropped 6/0, interface broadcasts 0
Last input 00:00:01, output 00:00:01, 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/1/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
17 packets input, 294 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
27 packets output, 508 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
3 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up
更改LMI类型
r1(config)#int s3/0
r1(config-if)#frame-relay lmi-type cisco
r1(config-if)#^Z
R2配置
r2(config)#
r2(config)#int s3/0
r2(config-if)#en fr
r2(config-if)#no sh
r2(config-if)#ip add 192.168
00:06:10: %LINK-3-UPDOWN: Interface Serial3/0, changed state to up
r2(config-if)#ip add 192.168.0.2 255.255.255.0
r2(config-if)#exit
调试试验
r1#debug frame-relay lmi
Frame Relay LMI debugging is on
Displaying all Frame Relay LMI data
r1#
00:07:36: Serial3/0(out): StEnq, myseq 3, yourseen 0, DTE up
00:07:36: datagramstart = 0×3000D54, datagramsize = 13
00:07:36: FR encap = 0xFCF10309
00:07:36: 00 75 01 01 00 03 02 03 00
00:07:36:
r1#
r1#
00:07:46: %FR-5-DLCICHANGE: Interface Serial3/0 �C DLCI 102 state changed to INACTIVE
00:07:46: %FR-5-DLCICHANGE: Interface Serial3/0 �C DLCI 103 state changed to INACTIVE
r1#
00:07:46: Serial3/0(out): StEnq, myseq 1, yourseen 0, DTE down
00:07:46: datagramstart = 0×3000D54, datagramsize = 13
00:07:46: FR encap = 0xFCF10309
00:07:46: 00 75 01 01 00 03 02 01 00
00:07:46:
r1#
00:07:47: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to down
r1#u all
All possible debugging has been turned off