对于PPP协议,讲述的内容非常多。今天我们则重点讲解一下PPP协议的身份认证的内容。其中包括了PAP、CHAP单双向身份认证的内容。
前面,我们对PPP协议进行了具体的介绍,相信大家已经对这个协议有所了解了。那么在PPP协议中,比较重要的就是PPP身份认证配置了。那么其中包括PAP、CHAP单双向身份认证。
使用的拓扑:
PAP双向身份认证
R1配置如下:
- configt
- hostnameR1
- usernameR1passwordkomy
- interfaces0/0/0
- ipaddress192.168.1.2255.255.255.252
- encapsulationppp
- pppauthenticationpap
- ppppapsent-usernameR2passwordkomy
- noshutdown
R2配置如下:
- configt
- hostnameR2
- usernameR2passwordkomy
- ints0/0/0
- clockrate4000000
- ipaddress192.168.1.1255.255.255.252
- encapsulationppp
- pppauthenticationpap
- ppppapsent-usernameR1passwordkomy
- noshutdown
PAP单向身份认证
R1配置如下(被认证方):
- configt
- hostnameR1
- interfaces0/0/0
- ipaddress192.168.1.2255.255.255.252
- encapsulationppp
- ppppapsent-usernameR2passwordkomy
- noshutdown
R2配置如下(主认证方):
- configt
- hostnameR2
- usernameR2passwordkomy
- ints0/0/0
- clockrate4000000
- ipaddress192.168.1.1255.255.255.252
- encapsulationppp
- pppauthenticationpap
- noshutdown
CHAP双向身份认证
- configt
- hostnameR1
- usernameR2passwordkomy
- ints0/0/0
- ipaddress192.168.1.2255.255.255.252
- encapsulationppp
- pppauthenticationchap
- noshutdown
R2:
- configt
- hostnameR2
- usernameR1passwordkomy
- ints0/0/0
- clockrate4000000
- ipaddress192.168.1.1255.255.255.252
- encapsulationppp
- pppauthenticationchap
- noshutdown
CHAP单向身份认证
R1(CHAP被认证方):
- configt
- hostnameR1
- usernameR2passwordkomy
- ints0/0/0
- ipaddress192.168.1.2255.255.255.252
- encapsulationppp
- noshutdown
R2(CHAP主认证方):
- configt
- hostnameR2
- usernameR1passwordkomy
- ints0/0/0
- clockrate4000000
- ipaddress192.168.1.1255.255.255.252
- encapsulationppp
- pppauthenticationchap
- noshutdown
来自:http://hi.baidu.com/51cmdshell
转载请说明出处
知优网 » 带你掌握PPP协议的身份认证(ppp协议的身份认证有)
知优网 » 带你掌握PPP协议的身份认证(ppp协议的身份认证有)