4.1 basic HDLC Configuration
Purpose:
1. master the basic configurations of HDLC.
2. Understand the HDLC Encapsulation Format.
Tutorial topology:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/06195955L-0.png "title =" 4.1.png "/>
Tutorial steps:
1. Deploy the HDLC encapsulation and IP address for the serial links of R1 and R2 Based on the topology shown in the figure. The configuration is as follows:
On R1
R1 (config) # int s0/0
R1 (config-if) # no shutdown
R1 (config-if) # encapsulation hdlc
R1 (config-if) # ip address 12.1.1.1 255.255.255.0
R1 (config-if) # exit
On R2
R2 (config) # int s0/0
R2 (config-if) # no shutdown
R2 (config-if) # encapsulation hdlc
R2 (config-if) # ip address 12.1.1.2 255.255.255.0
R2 (config-if) # exit
2. Check the interface encapsulation and test the direct connection connectivity.
R1 # show interfaces s0/0
Serial0/0 is up, line protocol is up
Hardware is M4T
Internet address is 12.1.1.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
Reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, Crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
Last input 00:00:01, output 00:00:09, output hang never
Last clearing of "show interface" counters never
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)
Conversations0/1/256 (active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
24 packets input, 2262 bytes, 0 no buffer
Received 24 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
31 packets output, 2982 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
4 carrier transitionsDCD = upDSR = upDTR = upRTS = upCTS = up
As you can see, the router uses the HDLC protocol for encapsulation and the interface is in normal state. Ping R2 on R1, as shown below:
R1 # ping 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/25/40 MS
In this case, after HDLC encapsulation, the direct connection is normal.
3. view the HDLC Encapsulation Format as follows: 650) this. length = 650; "src =" http://s16.sinaimg.cn/mw690/d37011a2gx6BJW2ViQTef&690 "real_src =" http://s16.sinaimg.cn/mw690/d37011a2gx6BJW2ViQTef&690 "width =" 690 "height =" 122 "name =" image_operate_54981376103960214 "alt =" pinginginglab passed the classic series "CCNA fully configured Guide"- 4.1 <wbr> basic HDLC configuration "title =" PingingLab classic series CCNA complete Configuration Guide-4.1 <wbr> basic HDLC configuration "/>
We can see that the L2 encapsulation protocol here is Cisco HDLC instead of the official HDLC. By default, the Cisco router adopts the private HDLC encapsulation, which is incompatible with other vendors, if the wide area network link has devices from other vendors, the PPP protocol must be used for encapsulation. This experiment is complete.
========================================================== =
PingingLab· High quality ITEducation provider
CCIELab-ITProject Practice · customization of high-end Talents
Shenzhen pinke Information Technology Co., Ltd. · waihuan West Road Station, Guangzhou University City
Sina Weibo :@PingingLab@ PingingLab-Chen xinjie
PingingLabPublic Account: pinginglab
PingingLabTechnical Exchange Group: 240920680
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0619591525-1.jpg "title =" pinginglab .bmp "/>
This article from the "Chen xinjie network" blog, please be sure to keep this source http://chenxinjie.blog.51cto.com/7749507/1274490