Objective: Understand how Point-to-Point Protocol (PPP) encapsulation works and how to secure the connection with Challenge Handshake Authentication Protocol (CHAP).
Lab Equipment: Router 1 and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 8: PPP with CHAP Authentication
1. Enter global configuration mode on Router 1, and change the host name to R1.
Router>enable
Router#conf t
Router(config)#hostname R1
R1(config)#
Lab Equipment: Router 1 and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 8: PPP with CHAP Authentication
1. Enter global configuration mode on Router 1, and change the host name to R1.
Router>enable
Router#conf t
Router(config)#hostname R1
R1(config)#
![](http://blog.51cto.com/attachment/200804/200804181208494099867.jpg?x-oss-process=image/resize,w_1400/format,webp)
2. The enable secret password will be used along with the host name to access the other router. Set R1’s enable secret password to sameone.
R1(config)#enable secret sameone
![](http://blog.51cto.com/attachment/200804/200804181208495146613.jpg?x-oss-process=image/resize,w_1400/format,webp)
3. On R1, configure a user name of R4 with the password myboson.
R1(config)#username R4 password myboson
![](http://blog.51cto.com/attachment/200804/200804181208495161972.jpg?x-oss-process=image/resize,w_1400/format,webp)
4. Assign an IP address of 10.1.1.1 255.255.255.0 to R1’s serial 0 interface.
R1(config)#interface serial 0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
![](http://blog.51cto.com/attachment/200804/200804181208495174753.jpg?x-oss-process=image/resize,w_1400/format,webp)
5. On R1, set the encapsulation for the serial 0 interface to PPP.
R1(config-if)#encapsulation ppp
6. Next, set PPP authentication to CHAP on the serial 0 interface.
R1(config-if)#ppp authentication chap
7. Now, make sure the serial 0 interface is enabled.
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
![](http://blog.51cto.com/attachment/200804/200804181208495190331.jpg?x-oss-process=image/resize,w_1400/format,webp)
8. Connect to Router 4, and configure a host name of R4.
Router>enable
Router#config t
Router(config)#hostname R4
R4(config)#
![](http://blog.51cto.com/attachment/200804/200804181208495332578.jpg?x-oss-process=image/resize,w_1400/format,webp)
9. Set an enable secret password of myboson on R4.
R4(config)#enable secret myboson
10. Add a user name of R1 with a password of sameone.
R4(config)#username R1 password sameone
![](http://blog.51cto.com/attachment/200804/200804181208495470060.jpg?x-oss-process=image/resize,w_1400/format,webp)
11. Assign an IP address of 10.1.1.2 255.255.255.0 to the serial 0 interface on R4, and then enable the interface.
R4(config)#interface serial 0
R4(config-if)#ip address 10.1.1.2 255.255.255.0
R4(config-if)#no shutdown
![](http://blog.51cto.com/attachment/200804/200804181208495589729.jpg?x-oss-process=image/resize,w_1400/format,webp)
12. configure the serial 0 PPP authentication to CHAP on R4.
R4(config-if)#ppp authentication chap
13. Enable PPP encapsulation on the serial 0 interface of R4. Now, watch the interface state change to up.
R4(config-if)#encapsulation ppp
R4(config-if)#exit
R4(config)#exit
R4#
![](http://blog.51cto.com/attachment/200804/200804181208495727883.jpg?x-oss-process=image/resize,w_1400/format,webp)
14. To verify that the configuration is correct, ping Router1’s serial 0 interface from Router4.
R4#ping 10.1.1.1
![](http://blog.51cto.com/attachment/200804/200804181208495806701.jpg?x-oss-process=image/resize,w_1400/format,webp)
************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/72266
,如需转载请自行联系原作者