interface Serial4/0/0
link-protocol ppp
ip address 12.1.1.2 255.255.255.0
PPP 可以对链路做认证
PPP 的链路认证:
PAP 认证:(明文传输,两次握手)
R2(服务端)
aaa
local-user hcnp password cipher hcnp123
local-user hcnp service-type ppp
int s4/0/0
ppp authentication-mode pap
此时:可以shutdown 接口 然后再undo shutdown 检测
R1 (客户端)
int s4/0/0
ppp pap local-user hcnp password simple hcnp123 配置客户端发送的用户名和密码
此时:可以shutdown 接口 然后再undo shutdown 检测
CHAP 认证:三次握手,密文发送
HDLC、FR
注:华为、H3C 串行接口默认的封装方式是PPP
cisco (思科) 串口默认封装的是HDLC
int s4/0/0
link-protocl hdlc
FR : frame-relay 帧中继