【實驗步驟】
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)