High-level Data Link Control ,高级数据链路控制,简称HDLC,是一种面向比特的来南路层协议。
具有如下特点:
[R1]int s1/0/0
[R1-Serial1/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
[R1]int s1/0/0
[R1-Serial1/0/0]ip address 12.0.0.1 24
用户只需要在串行接口视图下运行link-protocol hdlc命令就可以使能接口的HDLC协议。
华为设备上的串行接口默认运行PPP协议。用户必须在串行链路两端的端口上配置相同的
链路协议,双方才能通信。
[R1]int s1/0/0
[R1-Serial1/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
[R1-Serial1/0/0]ip address unnumbered interface LoopBack 0
[R1]ip route-static 12.0.0.0 24 s1/0/0
[R1]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 4
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 5
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 12.0.0.1/24 up up(s)
NULL0 unassigned up up(s)
Serial1/0/0 12.0.0.1/24 up down
Serial1/0/1 unassigned down down