《PPP配置过程.docx》由会员分享,可在线阅读,更多相关《PPP配置过程.docx(2页珍藏版)》请在三一办公上搜索。
1、PPP配置过程PPP配置过程:(CHAP) 配置发送方: Routerena Router#config t Router(config)#hostname r1 R1(config)#int fa0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#exit R1(config)#int s0/0/0 R1(config-if)#ip add 192.168.3.2 255.255.255.0 R1(config-if)#encapsulation ppp R1(config-
2、if)#ppp authentication chap R1(config-if)#clock rate 56000 R1(config-if)#no sh R1(config-if)#exit R1(config)#username r2 password 111111 R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.3 R1(config)#exit 配置接收方: Routerena Router#config t Router(config)#hostname r2 R2(config)#int fa0/0 R2(confi
3、g-if)#ip add 192.168.2.1 255.255.255.0 R2(config-if)#no sh R2(config-if)#exit R2(config)#int s0/0/0 R2(config-if)#ip add 192.168.3.3 255.255.255.0 R2(config-if)#encapsulation ppp R2(config-if)#ppp authentication chap R1(config-if)#no sh R1(config-if)#exit R1(config)#username r1 password 111111 R1(co
4、nfig)#ip route 192.168.1.0 255.255.255.0 192.168.3.2 R1(config)#exit 配置PPP DCE设备端PPP封装之PAP验证设置 RouterA# configure terminal RouterA(config)# username RouterB password 111 RouterA(config)# interface serial 0/0/0 RouterA(config-if)# encapsulation ppp RouterA(config-if)# ppp authentication pap RouterA(c
5、onfig-if)# ppp pap sent-username routera password 222 RouterA(config-if)# clock rate 56000 RouterA(config-if)# exit 8、DTE设备端PPP封装之PAP验证设置 RouterB# configure terminal RouterB(config)# username routera password 222 RouterB(config)# interface serial 0/0/0 RouterB(config-if)# encapsulation ppp RouterB(config-if)# ppp authentication pap RouterB(config-if)# ppp pap sent-username routerb password 111 RouterB(config-if)# exit 利用show run 命令查看串口配置