PPP

预先配置用户名密码ui

HQ#sh run | s user
username ccna password 0 ciscospa

PPP中PAP认证配置rest

Branch#sh run int s1/0
Building configuration...ip

Current configuration : 171 bytes
!
interface Serial1/0
ip address 192.168.1.1 255.255.255.0
encapsulation ppp
ppp pap sent-username ccna password 0 ciscoci

HQ(config-if)#do sh run int s1/0
Building configuration...hash

Current configuration : 133 bytes
!
interface Serial1/0
ip address 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication io

注:PAP采用两次握手认证,报文中使用了明文密码。配置

PPP中HCAP认证配置密码

Branch(config-if)#do sh run int s1/0
Building configuration...word

Current configuration : 177 bytes
!
interface Serial1/0
ip address 192.168.1.1 255.255.255.0
encapsulation ppp
ppp chap hostname ccna
ppp chap password 0 cisco
serial restart-delay 0

 

HQ(config-if)#do sh run int s1/0
Building configuration...

Current configuration : 133 bytes
!
interface Serial1/0
ip address 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication chap

注:CHAP认证采用三次握手方式,报文中传递的是被hash后的数值

相关文章
相关标签/搜索