建立PPP封装的两种方式,哪种正确?
以下建立PPP封装的两种方式,哪种正确?
第一种
router1:
username router2 password cisco
int s0
ip 192.168.8.1 255.255.255.0
encapsulation ppp
ppp auth chap
no shut
router2:
username router1 password cisco
int s0
ip 192.168.8.2 255.255.255.0
encapsulation ppp
ppp auth chap
no shut
第二种:
router1:
enable secret cisco1
username router2 password cisco2
int s0
ip 192.168.8.1 255.255.255.0
encapsulation ppp
ppp auth chap
no shut
router2:
enable secret cisco2
username router1 password cisco1
int s0
ip 192.168.8.2 255.255.255.0
encapsulation ppp
ppp auth chap
no shut
在某些模拟器中第二种方式正确,但教材说是第一种.