www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNA LABS / Wide Area Networks Solutions / Lab 25 Solution: PPP Authentication using CHAP – Method 2

Lab 25 Solution: PPP Authentication using CHAP – Method 2

Task 1:

For reference information on configuring hostnames, please refer to:

Lab 20 Configuration and Verification Task 1

Lab 21 Configuration and Verification Task 1

Task 2:

For reference information on verifying DTE/DCE status, please refer to:

Lab 20 Configuration and Verification Task 2

Lab 21 Configuration and Verification Task 2

For reference information on configuring DCE clocking, please refer to:

Lab 21 Configuration and Verification Task 2

Task 3:

For reference information on enabling PPP encapsulation, please refer to:

Lab 22 Configuration and Verification Task 3

Lab 23 Configuration and Verification Task 3

Task 4:

For reference information on verifying Serial encapsulation, please refer to:

Lab 21 Configuration and Verification Task 5

Lab 22 Configuration and Verification Task 5

R1#ping 192.168.50.34

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.50.34, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

R2#ping 192.168.50.33

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.50.33, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

Task 5:

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#int s0/0

R1(config-if)#ppp authentication chap

R1(config-if)#ppp chap ?

hostname  Set alternate CHAP hostname

password  Set default CHAP password

refuse    Refuse to authenticate using CHAP

wait      Wait for caller to authenticate first

R1(config-if)#ppp chap hostname Router1

R1(config-if)#ppp chap password MyPass

R1(config-if)#exit

R1(config)#username Router2 password MyPass

R1(config)#end

R1#

R2#configure ter

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#interf ser 0/0

R2(config-if)#ppp authentication chap

R2(config-if)#ppp chap hostname Router2

R2(config-if)#ppp chap password MyPass

R2(config-if)#exit

R2(config)#username Router1 password MyPass

R2(config)#end

R2#

NOTE: By default, there is no need to configure a hostname to be used for CHAP authentication on Cisco IOS routers as they will use the hostname configured on the router. However, to use a different hostname, CHAP must be configured for that. This is performed using the ppp chap hostname and ppp chap password commands on the PPP interface used for CHAP authentication.

Task 6:

R2#debug ppp authentication

PPP authentication debugging is on

R2#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#int s0/0

R2(config-if)#shut

*Mar  1 03:54:08.805: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down

*Mar  1 03:54:09.807: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

R2(config-if)#no shut

*Mar  1 03:54:15.861: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 03:54:15.861: Se0/0 PPP: Using default call direction

*Mar  1 03:54:15.861: Se0/0 PPP: Treating connection as a dedicated line

*Mar  1 03:54:15.861: Se0/0 PPP: Session handle[D50000E3] Session id[229]

*Mar  1 03:54:15.861: Se0/0 PPP: Authorization required

*Mar  1 03:54:15.869: Se0/0 CHAP: O CHALLENGE id 181 len 28 from “Router2”

*Mar  1 03:54:15.869: Se0/0 CHAP: I CHALLENGE id 181 len 28 from “Router1”

*Mar  1 03:54:15.873: Se0/0 CHAP: Using hostname from interface CHAP

*Mar  1 03:54:15.877: Se0/0 CHAP: Using password from AAA

*Mar  1 03:54:15.877: Se0/0 CHAP: O RESPONSE id 181 len 28 from “Router2”

*Mar  1 03:54:15.877: Se0/0 CHAP: I RESPONSE id 181 len 28 from “Router1”

*Mar  1 03:54:15.881: Se0/0 PPP: Sent CHAP LOGIN Request

*Mar  1 03:54:15.881: Se0/0 PPP: Received LOGIN Response PASS

*Mar  1 03:54:15.885: Se0/0 PPP: Sent LCP AUTHOR Request

*Mar  1 03:54:15.885: Se0/0 PPP: Sent IPCP AUTHOR Request

*Mar  1 03:54:15.885: Se0/0 CHAP: I SUCCESS id 181 len 4

*Mar  1 03:54:15.889: Se0/0 LCP: Received AAA AUTHOR Response PASS

*Mar  1 03:54:15.889: Se0/0 IPCP: Received AAA AUTHOR Response PASS

*Mar  1 03:54:15.889: Se0/0 CHAP: O SUCCESS id 181 len 4

*Mar  1 03:54:15.893: Se0/0 PPP: Sent CDPCP AUTHOR Request

*Mar  1 03:54:15.897: Se0/0 PPP: Sent IPCP AUTHOR Request

*Mar  1 03:54:15.897: Se0/0 CDPCP: Received AAA AUTHOR Response PASS

*Mar  1 03:54:16.895: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#end

R2#

*Mar  1 03:54:21.114: %SYS-5-CONFIG_I: Configured from console by console

R2#undebug ppp authentication

PPP authentication debugging is off

R2#

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.