PPP identity authentication? Do you understand?

Source: Internet
Author: User

Through understanding the PPP protocol, we found that PPP identity authentication is a very important part. The authentication process is divided into different stages. Let's take a look at the specific content here. First look at the topology used:

PAP two-way Identity Authentication

The R1 configuration is as follows:

 
 
  1. config t  
  2. hostname R1  
  3. username R1 password komy  
  4. interface s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. ppp authentication pap  
  8. ppp pap sent-username R2 password komy  
  9. no shutdown 

R2 is configured as follows:

 
 
  1. config t  
  2. hostname R2  
  3. username R2 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication pap  
  9. ppp pap sent-username R1 password komy  
  10. no shutdown 

PAP one-way Identity Authentication

R1 is configured as the authenticated party ):

 
 
  1. config t  
  2. hostname R1  
  3. interface s0/0/0  
  4. ip address 192.168.1.2 255.255.255.252  
  5. encapsulation ppp  
  6. ppp pap sent-username R2 password komy  
  7. no shutdown 

R2 is configured as follows (primary authenticated party ):

 
 
  1. config t  
  2. hostname R2  
  3. username R2 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication pap  
  9. no shutdown 

CHAP mutual identity authentication

 
 
  1. config t  
  2. hostname R1  
  3. username R2 password komy  
  4. int s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. ppp authentication chap  
  8. no shutdown 

R2:

 
 
  1. config t  
  2. hostname R2  
  3. username R1 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication chap  
  9. no shutdown 

CHAP one-way Identity Authentication

R1 (CHAP authenticated party ):

 
 
  1. config t  
  2. hostname R1  
  3. username R2 password komy  
  4. int s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. no shutdown 

R2 (CHAP primary authenticated party ):

 
 
  1. config t  
  2. hostname R2  
  3. username R1 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication chap  
  9. no shutdown 

From: http://hi.baidu.com/51cmdshell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.