R1>enable //进入到特权模式
R1#config terminal //进入全局配置模式
R1(config)#username R2 password groad //设置当地数据库,用以验证从 R2 发来的用户名和密码,如果匹配,那么验证通过
R1(config)#interface S2/0 //进入端口配置模式
R1(config-if)#encapsulation ppp //把接口的封装模式改为 PPP
R1(config-if)#ppp authentication pap // 开启 PAP 认证功能,此后 R1 成为验证的服务端。在输入 ppp authentication 并接着输入可以看到有 pap 和 chap 两种验证选项。
R1(config-if)#ppp pap sent-username R1 password groad //在从PC1向PC0通信时,R1 是验证服务端;同样在从 PC0 向 PC1 通信时,R1 是被验证端,这里设置 R1 在作为
//被验证端时,需要向 R2 发送的用户名和密码
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |