欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

PPP实验配置

程序员文章站 2024-02-13 17:18:28
...


实验拓扑 如图:
PPP实验配置

PAP认证方式

1.配置 R0、R1路由器

	R0(config)#interface serial 2/0
	R0(config-if)#clock rate 64000
	R0(config-if)#ip address 192.168.10.1 255.255.255.0
	R0(config-if)#no shutdown
	%LINK-5-CHANGED: Interface Serial2/0, changed state to down
	
	R1(config)#interface serial 2/0
	R1(config-if)#clock rate 64000
	R1(config-if)#ip address 192.168.10.1 255.255.255.0
	R1(config-if)#no shutdown
	%LINK-5-CHANGED: Interface Serial2/0, changed state to down

2.配置端口封装的协议

	R0(config)#interface serial 2/0
	R0(config-if)#encapsulation ppp
	%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down
	
	R1(config)#interface serial 2/0
	R1(config-if)#encapsulation ppp
	%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

3.配置路由器串口进行PAP认证 。R0为认证服务器,R1为认证客户端

	R0(config-if)#ppp authentication pap
	R0(config)#username R1 password 123
	%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
	
	R1(config-if)#ppp pap sent-username R1 password 123
	%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

5.验证

	R0#debug ppp authentication 
	PPP authentication debugging is on

CHAP认证方式

1.配置路由器串口进行CHAP认证。R0为认证服务器,R1为认证客户端

	R0(config)#interface serial 2/0
	R0(config-if)#encapsulation ppp
	R0(config-if)#ppp authentication chap
	R0(config)#username R1 password 123

	R1(config)#username R0 password 123

2.对配置进行诊断

	R0#debug ppp authentication
	PPP authentication debugging is on
	
	R1#debug ppp authentication
	PPP authentication debugging is on
相关标签: cisco