Wan protocol encapsulation
Target:
Measure the test taker's knowledge about the encapsulation types and methods of Wan protocols.
Tutorial principle:
Common Wan leased line technologies include ddnleased line, PSTN/ISDN leased line, Frame Relay leased line, and X.25 leased line. The data link layer provides various leased line protocols, including PPP, HDLC, X.25, Frame-relay, and ATM.
Experiment topology:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0516124563-0.png "title =" 002.png"/>
Step:
Step 1: Basic vro configurations
Router A (config) # interface serial 4/0
Router A (config-if) # ip address 172.16.2.1 255.255.255.0
Router B (config) # interface serial 4/0
Router B (config-if) # ip address 172.16.2.2 255.255.255.0
Step 2: encapsulate HDLC
Router A (config) # interface serial 4/0
Router A (config-if) # encapsulation hdlc
Router B (config) # interface serial 4/0
Router B (config-if) # encapsulation hdlc
Verify the encapsulation type of the WAN interface:
Router A # show interfaces serial 4/0
Index (dec): 1 (hex): 1
Serial 4/0 is UP, line protocol is UP
Hardware is Infineon DSCC4 PEB20534 H-10 serial
Interface address is: 172.16.2.2/24
MTU 1500 bytes, BW 2000 Kbit
Encapsulation protocol is HDLC, loopback not set
Keepalive interval is 10 sec, set
Carrier delay is 2 sec
RXload is 1, Txload is 1
Queueing strategy: WFQ
11421118 carrier transitions
V35 DTE cable
DCD = up DSR = up DTR = up RTS = up CTS = up
5 minutes input rate 17 bits/sec, 0 packets/sec
5 minutes output rate 17 bits/sec, 0 packets/sec
57 packets input, 1664 bytes, 0 no buffer, 0 dropped
Received 52 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort
68 packets output, 2726 bytes, 0 underruns, 0 dropped
0 output errors, 0 collisions, 0 interface resets
Note: The WAN interface of the ruijie router is encapsulated by HDLC by default.
Step 3: encapsulate PPP
Router A # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router A (config) # interface serial 4/0
Router A (config-if) # encapsulation ppp
Router B # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router B (config) # interface serial 4/0
Router B (config-if) # encapsulation ppp
Verify the encapsulation type of the WAN interface:
Router A # show interfaces serial 4/0
Index (dec): 1 (hex): 1
Serial 4/0 is UP, line protocol is UP
Hardware is Infineon DSCC4 PEB20534 H-10 serial
Interface address is: 172.16.2.1/24
MTU 1500 bytes, BW 2000 Kbit
Encapsulation protocol is PPP, loopback not set
Keepalive interval is 10 sec, set
Carrier delay is 2 sec
RXload is 1, Txload is 1
LCP Open
Open: ipcp
Queueing strategy: WFQ
11421118 carrier transitions
V35 DCE cable
DCD = up DSR = up DTR = up RTS = up CTS = up
5 minutes input rate 30 bits/sec, 0 packets/sec
5 minutes output rate 19 bits/sec, 0 packets/sec
123 packets input, 3638 bytes, 0 no buffer, 28 dropped
Received 68 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort
89 packages output, 2312 bytes, 0 underruns, 0 dropped
0 output errors, 0 collisions, 7 interface resets
Note]
When the WAN protocol is encapsulated, the two port encapsulation protocols of the V.35 cable must be consistent. Otherwise, a link cannot be established.
This article is from the "Security_net" blog, please be sure to keep this http://yxh1157686920.blog.51cto.com/7743046/1287895