19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PPP Authentication Configuration<br />

- Authentication allows a device to ensure that it is communicating with the correct device.<br />

Authentication is normally being initiated by the called party.<br />

- The 2 authentication protocols that can be used on PPP links are Password Authentication<br />

Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP).<br />

- PAP sends the username and password in clear text (very insecure) across a PPP link in the first<br />

message during the link establishment phase.<br />

- During the PAP authentication phase, the calling device will sends its username (or hostname)<br />

and password to the called device. The called device compares this information with a list of<br />

locally stored usernames and passwords and will reply with an accept or reject message<br />

accordingly. PAP is a two-way handshake mechanism.<br />

- CHAP does not send passwords directly; CHAP passwords are exchanged as MD5 hash values.<br />

The authentication phase takes place after the link establishment phase. CHAP begins with a<br />

challenge message, which states a random number. The challenged router (<strong>2nd</strong> router) replies<br />

with a calculated Message Digest 5 (MD5) one-way hash result based on the password and the<br />

random number. The 1st router calculates the same hash result with the same set of password and<br />

random number, and compares its result with the result replied from the challenged router.<br />

CHAP is a three-way handshake mechanism.<br />

- PPP authentication is defined as a one-way authentication method (the ppp authentication<br />

{pap | chap} command can be just issued on either end of a PPP link). However, two-way<br />

authentication can be achieved by issuing the ppp authentication command on both ends.<br />

- one-way authentication is the minimum possible authentication. The called party verifies the<br />

identity of the calling party. Also known as unidirectional authentication.<br />

two-way authentication is where the calling party can also verify the identity of the called party.<br />

Also known as bidirectional authentication.<br />

- If both PAP and CHAP are enabled with the ppp authentication {chap pap | pap chap}<br />

interface subcommand, the 1st method specified is used. If another peer suggests the <strong>2nd</strong> method<br />

or refuses the 1st method, the <strong>2nd</strong> method is used.<br />

- For one-way PAP authentication, the username {remote-hostname} password {passwd}<br />

statement is only required on the called device to verify the username and password sent by the<br />

calling device; whereas for two-way PAP authentication, it is required on both devices.<br />

- The username password statement is required on both devices for both unidirectional and<br />

bidirectional CHAP authentication. In unidirectional CHAP authentication (a local device<br />

authenticating a remote device), it is first used by the remote device (RT2) to response to the<br />

challenge generated by the local device (RT1), and then used by the local device (RT1) to verify<br />

the response from the remote device (RT2).<br />

- In PPP authentication configuration, the hostname of the remote router will be configured as the<br />

username on the local router, and the same shared secret password will be configured on both<br />

routers. Note: Passwords are case sensitive but usernames are not case-sensitive.<br />

155<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!