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
目录
相关文章
|
小程序
|
Linux
linux中查看某个文件夹下文件的个数和大小
这篇文章介绍了在Linux系统中使用各种命令(如`stat`、`wc`、`du`和`ls`)来查看文件夹下文件的个数和大小的方法。
5082 5
linux中查看某个文件夹下文件的个数和大小
|
Linux 数据处理 Python
编译dpdk19.08.2中example时一系列报错解决
编译dpdk19.08.2中example时一系列报错解决
829 4
|
Ubuntu 数据可视化 Linux
Ubuntu卸载软件:3种卸载方式
只卸载程序。如果你移除程序但保留配置文件,请输入以下命令: sudo apt-get remove <programname>
|
传感器
GIGE 协议摘录 —— GVSP 协议(三)(上)
GIGE 协议摘录 —— GVSP 协议(三)
2507 1
|
Java 数据安全/隐私保护 开发者
SpringBoot整合TrueLicense生成和验证License证书
TrueLicense生成和验证License证书
5605 1
|
Ubuntu Linux
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
1404 2
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
|
SQL 安全 网络协议
网络端口号和协议号(大全)
网络端口号和协议号(大全)
8409 2
|
Java 调度
Java偏向锁
Java偏向锁
362 1
|
安全 数据安全/隐私保护
BUUCTF wireshark 1
BUUCTF wireshark 1
1120 0