HDLC相对比较简单
interface Serial1/0/0
link-protocol hdlc
ip address 12.1.12.1 255.255.255.0
[R2-Serial1/0/0]link-protocol hdlc
两端配置HDLC协议实现一致性
HDLC的不足: 没有认证、无法多链路捆绑、无法实现IP地址自动获取
以上不足PPP进行弥补
1、链路配置为PPP协议
interface Serial1/0/0
link-protocol ppp //配置为PPP链路
2、配置PAP认证
R2作为认证端,R1作为被认证端
R2 PAP关键配置:
1)、aaa 配置用户名和密码及类型PPP
local-user huayi password cipher %$%$F]ef/Q7j:9AZjWO,ZYIW)we)%$%$
local-user huayi service-type ppp
2)、接口配置PAP认证
interface Serial1/0/0
ppp authentication-mode pap
3)、R1被认证端配置
interface Serial1/0/0
ppp pap local-user huayi password cipher %$%$ihUp~nMyN~fmy8Sz5M!R,%qN%$%$
3、验证PAP
Info: Current terminal monitor is on.
1、配置为CHAP模式
[R2-Serial1/0/0]ppp authentication-mode chap //修改为CHAP
interface Serial1/0/0
ppp chap user huayi
ppp chap password cipher %$%$%jra8rw0~"kg~&Ig7/iB,&Mn%$%$
2、验证CHAP
Info: Current terminal monitor is on.
[R1]interface Mp-group 0/0/1
[R1-Serial1/0/0]ppp mp Mp-group 0/0/1
[R1-Serial1/0/1]ppp mp Mp-group 0/0/1
[R1]interface Mp-group 0/0/1
[R1-Mp-group0/0/1]ip address 12.1.12.1 24
查看验证:
[R1]display ppp mp interface Mp-group 0/0/1
Mp-group is Mp-group0/0/1
===========Sublinks status begin======
Serial1/0/0 physical UP,protocol UP
Serial1/0/1 physical UP,protocol UP