PPP CHAP认证

【实验步骤】
R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface serial 2/0
R1(config-if)#no shutdown
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#username R2 password 0 cisco      (对方的主机名 还有密码)
R1(config)#interface serial 2/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap    (PPP CHAP认证)
R2
Router>enable
Router#configure terminal
Router(config)#interface serial 2/0
Router(config-if)#no shutdown
Router(config-if)#ip address 1.1.1.2 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#exit
Router(config)#hostname R2
R2(config)#username R1 password 0 cisco     (对方的机器名    密码和对方一致才被经过)
R2(config)#interface serial 2/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
(密码一致,线路UP)
相关文章
相关标签/搜索