Cisco-HDLP和PPP

简介: HDLP和PPP

简介

最常用的两个点对点广域网封装协议是HDLC、PPP
PPP:用于在链路建立过程当中检查链路质量;另外,还支持PAP和CHAP密码验证
HDLC:是思科串行线路的缺省协议,只允许点对点的连接

HDLC

HDLC:是在同步数据链路控制封装协议发展而来的数据链路层协议。
HDLC是CISCO串行线路的缺省封装协议,只允许CISCo专用设备的连接,与其他的供应商的设备不兼容。
如果与没有运行cISoc IOS的设备连接应当使用PPP。

启用HDLC封装

Router(config-if)#encapsulation hdlc
HDLC是同步串口的缺省封装格式

激活PPP验证

Router(config-if)#encapsulation ppp
Router(config)#hostname name #给路由器命名
Router(config)#username name password password #提供需要验证的对方路由器的名称和密码
Router(config-if)#ppp authentication{chap | chap pap | pap chap / pap} #激活PAP或CHAP验证

查看 HDLC 和 PPP 的封装:

Router#show interface s0
 Serial0 is up, line protocol is up 
 Hardware is HD64570
  Internet address is 10.140.1.2/24 
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 
  Encapsulation PPP, loopback not set, keepalive set (10 sec) 
  LCP Open 
  Open: IPCP, CDPCP 
  Last input 00:00:05, output 00:00:05, output hang never 
  Last clearing of "show interface" counters never 
  Queueing strategy: fifo 
  Output queue 0/40, 0 drops; input queue 0/75, 0 drops 
  5 minute input rate 0 bits/sec, 0 packets/sec 
  5 minute output rate 0 bits/sec, 0 packets/sec 
  38021 packets input, 5656110 bytes, 0 no buffer 
  Received 23488 broadcasts, 0 runts, 0 giants, 0 throttles 
  0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 
  38097 packets output, 2135697 bytes, 0 underruns 
  0 output errors, 0 collisions, 6045 interface resets 
  0 output buffer failures, 0 output buffers swapped out 
  482 carrier transitions 
  DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
目录
相关文章
|
26天前
|
监控 安全 网络协议
什么是点对点协议 (PPP)?
【4月更文挑战第12天】
24 1
什么是点对点协议 (PPP)?
|
26天前
HDLC与PPP的区别
【4月更文挑战第11天】
23 0
HDLC与PPP的区别
|
JavaScript Shell iOS开发
|
JavaScript Shell iOS开发
|
数据安全/隐私保护 网络架构
|
网络架构 网络协议
|
网络协议 网络架构
|
数据安全/隐私保护 网络架构