对于PPP协议,讲述的内容非常多。今天我们则重点讲解一下PPP协议的身份认证的内容。其中包括了PAP、CHAP单双向身份认证的内容。

前面,我们对PPP协议进行了具体的介绍,相信大家已经对这个协议有所了解了。那么在PPP协议中,比较重要的就是PPP身份认证配置了。那么其中包括PAP、CHAP单双向身份认证。

使用的拓扑:

带你掌握PPP协议的身份认证(ppp协议的身份认证有)  PPP 身份认证 第1张

PAP双向身份认证

R1配置如下:

  1. configt
  2. hostnameR1
  3. usernameR1passwordkomy
  4. interfaces0/0/0
  5. ipaddress192.168.1.2255.255.255.252
  6. encapsulationppp
  7. pppauthenticationpap
  8. ppppapsent-usernameR2passwordkomy
  9. noshutdown

R2配置如下:

  1. configt
  2. hostnameR2
  3. usernameR2passwordkomy
  4. ints0/0/0
  5. clockrate4000000
  6. ipaddress192.168.1.1255.255.255.252
  7. encapsulationppp
  8. pppauthenticationpap
  9. ppppapsent-usernameR1passwordkomy
  10. noshutdown

PAP单向身份认证

R1配置如下(被认证方):

  1. configt
  2. hostnameR1
  3. interfaces0/0/0
  4. ipaddress192.168.1.2255.255.255.252
  5. encapsulationppp
  6. ppppapsent-usernameR2passwordkomy
  7. noshutdown

R2配置如下(主认证方):

  1. configt
  2. hostnameR2
  3. usernameR2passwordkomy
  4. ints0/0/0
  5. clockrate4000000
  6. ipaddress192.168.1.1255.255.255.252
  7. encapsulationppp
  8. pppauthenticationpap
  9. noshutdown

CHAP双向身份认证

  1. configt
  2. hostnameR1
  3. usernameR2passwordkomy
  4. ints0/0/0
  5. ipaddress192.168.1.2255.255.255.252
  6. encapsulationppp
  7. pppauthenticationchap
  8. noshutdown

R2:

  1. configt
  2. hostnameR2
  3. usernameR1passwordkomy
  4. ints0/0/0
  5. clockrate4000000
  6. ipaddress192.168.1.1255.255.255.252
  7. encapsulationppp
  8. pppauthenticationchap
  9. noshutdown

CHAP单向身份认证

R1(CHAP被认证方):

  1. configt
  2. hostnameR1
  3. usernameR2passwordkomy
  4. ints0/0/0
  5. ipaddress192.168.1.2255.255.255.252
  6. encapsulationppp
  7. noshutdown

R2(CHAP主认证方):

  1. configt
  2. hostnameR2
  3. usernameR1passwordkomy
  4. ints0/0/0
  5. clockrate4000000
  6. ipaddress192.168.1.1255.255.255.252
  7. encapsulationppp
  8. pppauthenticationchap
  9. noshutdown

来自:http://hi.baidu.com/51cmdshell

转载请说明出处
知优网 » 带你掌握PPP协议的身份认证(ppp协议的身份认证有)

发表评论

您需要后才能发表评论