We know that PPP and point-to-point protocols are commonly used. Related settings are available on many devices. Here we will give a detailed explanation of the configuration of cisco ppp. Let's take a closer look at the authentication configuration involved.
Cisco ppp configuration 1: PAP authentication configuration for PPP
R1: (the primary authenticated party is also the authenticated party)
- hostname r1
- username r2 password yhp
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username r1 password yhp
- no shutdown
Optional
- Peer default ip address 192.200.10.2 --------- negotiate IP address
- Compress {predictor | stac}
- Ip tcp header-compress
R2: (the primary authenticated party is also the authenticated party)
- hostname r2
- username r1 password yhp
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username r2 password yhp
- no shutdown
Optional
- Ip address nego ------------------------------------- set with the same end
- Compress {predictor | stac}
- Ip tcp header-compress
Cisco ppp configuration 2: CHAP authentication configuration for PPP
Method 1
R1: (primary authenticated party)
- hostname r1
- username r2 pass yhp
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
R2: (authenticated party)
- hostname r2
- username r1 pass yhp
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
Method 2
R1: (primary authenticated party)
- hostname r1
- username r2 pass cisco
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
R2: (authenticated party)
- hostname r2
- username r1 pass cisco
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- ppp chap hostname yhp
- no shutdown
Note: If the PPP compression method is required, the [ppp pap configuration], DCE, and DTE must be configured separately.
Cisco ppp configuration Source Address: http://hi.baidu.com/yhpspace/blog/item/05aa83551784b7c7b645ae59.html