PPP protocol configuration and PAP authentication Configuration

Source: Internet
Author: User

Through understanding the PPP protocol, we also entered the configuration phase. We know that the PPP protocol (point to point protocol) is the predecessor of the point-to-point protocol, SLIP, the PPP protocol provides a standard method for encapsulating multiple network data packets on point-to-point links. Now we will focus on the configuration of PPP protocol and PAP authentication.

Advantages of PPP over SLIP protocols:

1. Support synchronous and asynchronous serial links;

2. Supports multiple network protocols;

3. support negotiation of various connection parameters;

4. Supports error detection;

5. User authentication is supported;

6. Data Compression is allowed.

Composition of the PPP protocol:

1. protocol encapsulation

2. LCP

3. NCP

PPP operation process:

1. Link unavailable stage

2. link establishment phase

3. Authentication phase

4. Network Layer Protocol phase

5. End of the link

LCP protocol negotiation:

MRU maximum data unit/Magic Number Magic word/authentication method/link Compression

NCP protocol negotiation:

IP address; TCP/IP Header Compression

Authentication method:

PAP/CHAP

PPP protocol Configuration:

Encapsulate PPP:

 
 
  1. Router(config)#inter serial 2/0  
  2. Router(config-if)#encapsulation ppp 

Set the clock frequency on the DCE side:

 
 
  1. Router(config-if)#clock rate 64000 

Interface IP Configuration:

 
 
  1. Router(config-if)#ip address 192.168.10.1 255.255.255.0  
  2. Router(config-if)#no shutdown 

PAP authentication Configuration:

PAP authentication configuration, Master authentication end:

 
 
  1. Router(config-if)#exit  
  2. Router(config)#username derek password 0 123  
  3. Router(config)#inter s2/0  
  4. Router(config-if)#ppp authentication   
  5. %SYS-5-CONFIG_I: Configured from console by console 

PAP authentication configuration, authenticated end:

 
 
  1. Router(config-if)#ppp pap sent-username derek password 0 123 

PAP authentication configuration complete, test:

 
 
  1. Router#ping 192.168.10.2  
  2. Router#debug ppp packet 

View Port:

 
 
  1. Router#show interfaces s 2/0  
  2. Serial2/0 is up, line protocol is up (connected)  
  3. Hardware is HD64570  
  4. Internet address is 192.168.10.2/24  
  5. MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255  
  6. Encapsulation PPP, loopback not set, keepalive set (10 sec)  
  7. LCP Open  
  8. Open: IPCP, CDPCP  
  9. Last input never, output never, output hang never  
  10. Last clearing of "show interface" counters never  
  11. Input queue: 0/75/0 (size/max/drops); Total output drops: 0  
  12. Queueing strategy: weighted fair  
  13. Output queue: 0/1000/64/0 (size/max total/threshold/drops) 

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.