[网络设备P3]PPP协议常用命令
前言
纠结了两天,不知道要怎么写更好一点。暂时先这样吧,之后想起来再改。
拓扑图
命令
主要命令
#协议封装为ppp
Router(config-if)#encapsulation ppp
#pap认证方式
R0(config-if)#ppp authentication pap
R1(config-if)#ppp authentication pap
R0(config-if)#ppp pap sent-username R0 password 123
R1(config-if)#ppp pap sent-username R1 password 123
#chap认证方式
R0(config-if)#ppp authentication chap
R1(config-if)#ppp authentication chap
重点命令
#协议封装为ppp
Router(config-if)#encapsulation ppp
#设置认证方式
Router(config-if)#ppp authentication [pap|chap]
#pap发送用户名和密码
Router(config-if)#ppp pap sent-username Router password 123
pap认证实例
R0部分
Router(config)#hostname R0
R0(config)#username R1 password 123
R0(config)#interface Serial1/0
R0(config-if)#ppp authentication pap
R0(config-if)#ppp pap sent-username R0 password 123
R1部分
Router(config)#hostname R1
R1(config)#username R0 password 123
R1(config)#interface Serial1/0
R1(config-if)#ppp authentication pap
R1(config-if)#ppp pap sent-username R1 password 123
chap认证实例
R0部分
Router(config)#hostname R0
R0(config)#interface Serial1/0
R0(config-if)#ppp authentication chap
R0(config-if)# username R1 password 123
R1部分
Router(config)#hostname R1
R1(config)#interface Serial1/0
R1(config-if)#ppp authentication chap
R1(config-if)# username R0 password 123
文章
未经允许不得转载:Sansmall's Blog » [网络设备P3]PPP协议常用命令
发表于2020-05-24 13:43