PPP绑定双向PAP验证[RTA]interface Virtual-Template 1
[RTA-Virtual-Template1]ip address 1.1.1.1 24
[RTA-Virtual-Template1]quit
[RTA]local-user rtb
New local user added.
[RTA-luser-rtb]password simple rtb
[RTA-luser-rtb]service-type ppp
[RTA-luser-rtb]quit
[RTA]ppp mp user rtb bind virtual-template 1
[RTA]interface Virtual-Template 1
[RTA-Virtual-Template1]ppp mp binding authentication [RTA-Virtual-Template1]quit
[RTA]interface s0/0
[RTA-Serial0/0]link-protocol ppp
[RTA-Serial0/0]ppp mp virtual-template 1
[RTA-Serial0/0]ppp authentication-mode pap domain system [RTA-Serial0/0]ppp pap local-user rta password simple rta [RTA-Serial0/0]ppp mp
[RTA-Serial0/0]quit
[RTA]interface s1/0
[RTA-Serial1/0]link-protocol ppp
[RTA-Serial1/0]ppp mp virtual-template 1
[RTA-Serial1/0]ppp authentication-mode pap domain system [RTA-Serial1/0]ppp pap local-user rta password simple rta [RTA-Serial1/0]ppp mp
[RTA-Serial1/0]quit
[RTA]domain system
[RTA-isp-system]authentication ppp local
[RTA-isp-system]quit
[SWB]interface Virtual-Template 1
[SWB-Virtual-Template1]ip address 1.1.1.2 24
[SWB-Virtual-Template1]quit
[SWB]local-user rta
[SWB-luser-rta]password simple rta
[SWB-luser-rta]service-type ppp
[SWB-luser-rta]quit
[SWB]ppp mp user rta bind virtual-template 1
[SWB]interface Virtual-Template 1
[SWB-Virtual-Template1]ppp mp binding-mode authentication
[SWB-Virtual-Template1]quit
[SWB]interface s0/0
[SWB-Serial0/0]link-protocol ppp
[SWB-Serial0/0]ppp mp virtual-template 1
[SWB-Serial0/0]ppp authentication-mode pap domain system
[SWB-Serial0/0]ppp pap local-user rtb password simple rtb
[SWB-Serial0/0]ppp mp
[SWB-Serial0/0]quit
[SWB]interface s1/0
[SWB-Serial1/0]link-protocol ppp
[SWB-Serial1/0]ppp mp virtual-template 1
[SWB-Serial1/0]ppp authentication-mode pap domain system
[SWB-Serial1/0]ppp pap local-user rtb password simple rtb
[SWB-Serial1/0]ppp mp
[SWB-Serial1/0]quit
[
[SWB]domain system
[SWB-isp-system]authentication ppp local
[SWB-isp-system]quit
PPP绑定双向chap验证
[RTA]interface Virtual-T emplate 1 创建虚拟接口
[RTA-Virtual-T emplate1]ip address 1.1.1.1 24 为虚拟接口配置逻辑IP地址
[RTA-Virtual-T emplate1]quit
[RTA]local-user rtb 将对端用户和密码加入本地,以便验证New local user added.
[RTA-luser-rtb]password simple rtb 配置密码
[RTA-luser-rtb]service-type ppp 服务类型PPP
[RTA-luser-rtb]quit
[RTA]ppp mp user rtb binding-mode virtual-template 1 将对端用户名与虚拟接口捆绑
[RTA]interface Virtual-T emplate 1
[RTA-Virtual-T emplate1]ppp mp binding-mode authentication 绑定认证方式
[RTA]interface s0/0
[RTA-Serial0/0]link-protocol ppp
[RTA-Serial0/0]ppp mp virtual-template 1
[RTA-Serial0/0]ppp authentication-mode chap call-in domain system
[RTA-Serial0/0]ppp chap user rta
[RTA]interface s1/0
[RTA-Serial1/0]link-protocol ppp
[RTA-Serial1/0]ppp mp virtual-template 1
[RTA-Serial1/0]ppp authentication-mode chap call-in domain system
[RTA-Serial1/0]ppp chap user rta
[RTA]domain system
[RTA-isp-system]authentication ppp local 认证ppp为本地认证方式
[RTA-isp-system]quit
[RTB]interface Virtual-T emplate 1
[RTB-Virtual-T emplate1]ip address 1.1.1.2 24
[RTB-Virtual-T emplate1]quit
[RTB]local-user rta
New local user added.
[RTB-luser-rta]password simple rta
[RTB-luser-rta]service-type ppp
[RTB-luser-rta]quit
[RTB]ppp mp user rtb bind virtual-template 1
[RTB]interface Virtual-T emplate 1
[RTB-Virtual-T emplate1]ppp mp binding-mode authentication
[RTB-Virtual-T emplate1]quit
[RTB]interface s0/0
[RTB-Serial0/0]link-protocol ppp
[RTB-Serial0/0]ppp mp virtual-template 1
[RTB-Serial0/0]ppp authentication-mode chap call-in domain system
[RTB-Serial0/0]ppp chap user rta
[RTB-Serial0/0]quit
[RTB]interface s1/0
[RTB-Serial1/0]link-protocol ppp
[RTB-Serial1/0]ppp mp virtual-template 1
[RTB-Serial1/0]ppp authentication-mode chap call-in domain system [RTB-Serial1/0]ppp chap user rta
[RTB-Serial1/0]ppp mp
[RTB-Serial1/0]quit
[RTB]domain system
[RTB-isp-system]authentication ppp local
[RTB-isp-system]quit
display ppp mp interface Virtual-T emplate 1
T emplate is Virtual-T emplate1
max-bind: 16, min-fragment: 128
Inactive member channels: 2 members
Serial0/0 (inactive)
Serial1/0 (inactive)
Pap的Mp-group验证方式
[RTA]interface Mp-group 1
[RTA-Mp-group1]ip address 1.1.1.1 24
[RTA-Mp-group1]quit
[RTA]interface s0/0
[RTA-Serial0/0]ppp mp Mp-group 1
[RTA-Serial0/0]quit
[RTA]interface s1/0
[RTA-Serial1/0]ppp mp Mp-group 1
[RTA-Serial1/0]quit
[RTB]interface Mp-group 1
[RTB-Mp-group1]quit
[RTB]interface s0/0
[RTB-Serial0/0]ppp mp Mp-group 1
[RTB-Serial0/0]quit
[RTB]interface s1/0
[RTB-Serial1/0]ppp mp Mp-group 1
[RTB-Serial1/0]quit
[RTA]local-user rtb
New local user added.
[RTA-luser-rtb]password simple rtb
[RTA-luser-rtb]service-type ppp
[RTA-luser-rtb]quit
[RTB]local-user rta
New local user added.
[RTB-luser-rta]password simple rta
[RTB-luser-rta]service-type ppp
[RTB-luser-rta]quit
[RTA]interface s0/0
[RTA-Serial0/0]link-protocol ppp
[RTA-Serial0/0]ppp authentication-mode pap domain system [RTA-Serial0/0]ppp pap local-user rta password simple rta [RTA-Serial0/0]ppp mp
[RTA]interface s1/0
[RTA-Serial1/0]link-protocol ppp
[RTA-Serial1/0]ppp authentication-mode pap domain system [RTA-Serial1/0]ppp pap local-user rta password simple rta [RTA-Serial1/0]ppp mp
[RTA]domain system
[RTA-isp-system]authentication ppp local
[RTA-isp-system]quit
[RTB]interface s0/0
[RTB-Serial0/0]link-protocol ppp
[RTB-Serial0/0]ppp authentication-mode pap domain system [RTB-Serial0/0]ppp pap local-user rta password simple rta [RTB-Serial0/0]quit
[RTB]interface s1/0
[RTB-Serial1/0]link-protocol ppp
[RTB-Serial1/0]ppp authentication-mode pap domain system [RTB-Serial1/0]ppp pap local-user rta password simple rta [RTB-Serial1/0]quit
[RTB]domain system
[RTB-isp-system]authentication ppp local
[RTB-isp-system]quit
dis interface Mp-group 1
Mp-group1 current state: DOWN
Line protocol current state: DOWN
Description: Mp-group1 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 1.1.1.1/24 Primary
Link layer protocol is PPP
LCP initial
Physical is MP
Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last clearing of counters: Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 drops
1 packets output, 14 bytes, 0 drops