username router2 password xxx //建立一用户,用户名为router2,口令为xxx interface serial0 ip address 192.200.10.1 255.255.255.0 encapsulation ppp //设置ppp封装 clockrate 1000000 ppp authentication chap //设置ppp认证方法为chap ! router2: hostname router2 username router1 password xxx interface serial0 ip address 192.200.10.2 255.255.255.0 encapsulation ppp ppp authentication chap |