PAP单向验证举例

上传人:206****923 文档编号:37505709 上传时间:2018-04-17 格式:DOC 页数:2 大小:44KB
返回 下载 相关 举报
PAP单向验证举例_第1页
第1页 / 共2页
PAP单向验证举例_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《PAP单向验证举例》由会员分享,可在线阅读,更多相关《PAP单向验证举例(2页珍藏版)》请在金锄头文库上搜索。

1、PAP 单向验证举例1.1. 组网需求组网需求如图 1-5 所示,Router A 和 Router B 之间用接口 Serial2/0 互连,要求 Router A 用 PAP 方式验证 Router B,Router B 不需要对 Router A 进行验证。2.2. 组网图组网图图 1-5 PAP 验证、CHAP 验证举例组网图3.3. 配置步骤配置步骤(1) 配置 Router A # 为 Router B 创建本地用户。system-view RouterA local-user userb # 设置本地用户的密码。RouterA-luser-userb password simpl

2、e passb # 设置本地用户的服务类型为 PPP。RouterA-luser-userb service-type ppp RouterA-luser-userb quit # 配置接口封装的链路层协议为 PPP。RouterA interface serial 2/0 RouterA-Serial2/0 link-protocol ppp # 配置本地验证 Router B 的方式为 PAP。RouterA-Serial2/0 ppp authentication-mode pap domain system # 配置接口的 IP 地址。RouterA-Serial2/0 ip addr

3、ess 200.1.1.1 16 RouterA-Serial2/0 quit # 在系统缺省的 ISP 域 system 下,配置 PPP 用户使用本地认证方案。RouterA domain system RouterA-isp-system authentication ppp local (2) 配置 Router B # 配置接口封装的链路层协议为 PPP。system-view RouterB interface serial 2/0 RouterB-Serial2/0 link-protocol ppp # 配置本地被 Router A 以 PAP 方式验证时 Router B 发

4、送的 PAP 用户名和密码。RouterB-Serial2/0 ppp pap local-user userb password simple passb # 配置接口的 IP 地址。RouterB-Serial2/0 ip address 200.1.1.2 16 (3) 验证配置结果 通过查看 displaydisplay interfaceinterface serial 2/0 信息,接口的物理层和链路层的状态都是 up 状 态,并且 PPP 的 LCP 和 IPCP 都是 opened 状态,说明链路的 PPP 协商已经成功,并且 Router A 和 Router B 可以互相

5、pingping 通对方。RouterB-Serial2/0 display interface serial 2/0 Serial2/0 current state: UP Line protocol current state: UP Description: Serial2/0 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 200.1.1.2/16 Primary Link layer protocol is PPP LCP opened, IPCP opene

6、d 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 Interface is V35 206 packets input, 2496 bytes 206 packets output, 2492 bytes RouterB-Serial2/0 ping 200.1.1.1

7、 PING 200.1.1.1: 56 data bytes, press CTRL_C to break Reply from 200.1.1.1: bytes=56 Sequence=1 ttl=255 time=103 ms Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=255 time=10 ms - 200.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/23/103 ms

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号