实验步骤:
++++++++++++++++++++++++++++++++++
router 0
++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in s0/1
ip add 192.168.1.1 255.255.255.0
no sh
encap ppp
ppp authentication pap
sh
no sh
exit
username a password 0 123
in s0/1
peer default ip add 192.168.1.2
compress predictor
ip tcp header-compression
++++++++++++++++++++++++++++++
router 1
++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in s0/0
encapsulation ppp
sh
no sh
ip add negotiated
ppp pap sent-username a password 0 123
compress predictor
ip tcp header-compression
chap认证
实验步骤:
router 0
+++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in s0/1
ip add 192.168.1.1 255.255.255.0
no sh
encapsulation ppp
ppp authentication chap
peer default ip add 192.168.1.2
ppp chap hostname a
username b pass 0 123
in s0/1
sh
no sh
+++++++++++++++++++++++++++++++
router 1
+++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in s0/0
encap ppp
no sh
no sh
ip add negotiated
ppp chap hostname b
exit
username a pass 0 123
阅读(1117) | 评论(0) | 转发(0) |