ppp链路认证实验
实验拓扑
实验需求
- 路由器A和B通过专线相连,路由器A和B相连网络的掩码为/30网段,两台路由器能通信
- 在路由器A与B上实现PAP认证,使两台路由器能互通
- 在路由器A与B上实现CHAP认证,使两台路由器能互通;
注意:认证者为R2,被认证者为R1;
实验思路
- 给两边路由器配置好IP地址,通过Ping测试联通性
- 设置PAP单向认证,通过Ping测试联通性
- 配置PAP双向认证,通过Ping测试联通性
- 配置CHAP单向认证,通过Ping测试联通性
- 配置CHAP双向认证,通过Ping测试联通性
实验步骤
1 配置IP 进行测试联通
办事处
Router>en
Router#conf ter
Enter configuration commands,one per line.End with CNTL/Z.
Router( config)#int s1/2
Router( config-if)#ip add 192.168.1.1 255.255.255.252
Router( config-if)#no shut
总部
Router>en
Router#conf ter
Enter configuration commands,one per line.End with CNTL/Z.
Router(config)#int s1/2
Router(config-if)#ip add 192.168.1.2 255.255.255.252
Router( config-if))#no shut
测试
总部路由器
Router( config-if)#doping192.168.1.1
Type escape sequence to abort.
Sending 5,100-byteICMP Echos to 192.168.1.1,timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max = 16/19/21ms