Ppp PAP认证配置
DCE配置
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho r1
r1(config)#lin 0
r1(config-line)#no ip do lo
r1(config-line)#no exec-t
r1(config-line)#logg s
r1(config-line)#int s0/0
r1(config-if)#ip add 1.1.1.1 255.255.255.0
r1(config-if)#clock rate 64000
r1(config-if)#no shut
r1(config-if)#encapsulation ppp
r1(config-if)#exit
r1(config)#username r1 password cisco
r1(config)#int s0/0
r1(config-if)#ppp authentication pap
DTE配置
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho r2
r2(config)#lin 0
r2(config-line)#no ip do lo
r2(config-line)#no exec-t
r2(config-line)#logg s
r2(config-line)#int s0/0
r2(config-if)#ip add 1.1.1.2 255.255.255.0
r2(config-if)#no shut
r2(config-if)#encapsulation ppp
r2(config-if)#ppp pap sent-username r1 password cisco
r2(config-if)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/38/64 ms
r2(config-if)#
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。