配置PPP及身份验证

clip_image001

实验目的:掌握PPP配置方法,理解两种身份验证的工作原理。

实验设备:CISCO路由器两台,V.35连线一根。

实验内容:

1、按上图把两台路由器连接好,设置好主机名。

2、设置接口ip 地址。在Ra 上创建一个loopback接口:loopback1,IP:192.168.1.2/24, Ra : s0:192.168.2.1/30,接口描述为”local ppp interface”. Remote :S1:192.168.2.2/30,接口描述为”remote ppp interface”在remote 上创建一个loopback 接口:loopback2,IP:192.168.3.2/24.

3、分别在两台路由器上启动rip v2路由协议,取消自动汇总。语法为:router(config)#router rip

Router(config-router)#version 2

Router(config-router)#no auto-summary

通告每个接口。

4、分别在Ra的S0接口和remote的S1接口配置PPP封装,并配置PAP身份验证。单向验证:remote验证Ra,密码为:cisco。

语法为:验证端:

router(config)#username name password password//name和password为被验证端的主机名和密码

router(config)# interface type number

Router(config-if)#encapsulation ppp

Router(config-if)#ppp authentication pap

被验证端:

Router(config)#interface type number

Router(config-if)#encapsulation ppp

Router(config-if)#ppp pap sent-username name password password//本路由器的主机名和密码

5、验证配置。

方法为:router#show interface

Router#debug ppp authentication

6、清除PAP身份验证。配置CHAP身份验证。Ra的密码为:cisco

Remote的密码为:cisco.

语法为:router(config)#username name password password//对方主机名和密码

Router(config)#interface type number

Router(config-if)#encapsulation ppp

Router(config-if)#ppp authentication chap

7、再次验证配置。清除配置,配置双向PAP身份验证。Remote的密码为student。