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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- The function of the username {remote-username} password {passwd} statement is<br />

different for PAP and CHAP. With PAP, it is only used to verify that an incoming username and<br />

password; whereas CHAP uses it to generate the response to a challenge (on remote router) and<br />

verify a response (on local router).<br />

- Bidirectional (two-way) CHAP Authentication configuration on RT1:<br />

RT1#conf t<br />

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

RT1(config)#username RT2 password cisco123<br />

RT1(config)#int s0/0<br />

RT1(config-if)#ppp authentication chap<br />

00:15:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed<br />

state to down<br />

RT1(config-if)#^Z<br />

RT1#<br />

- Bidirectional (two-way) CHAP Authentication configuration on RT2:<br />

RT2#conf t<br />

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

RT2(config)#username RT1 password cisco123<br />

00:16:01: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed<br />

state to up<br />

RT2(config)#int s0/0<br />

RT2(config-if)#ppp authentication chap<br />

RT2(config-if)#^Z<br />

RT2#<br />

- Below shows the output of the debug ppp authentication privileged command on RT2 when<br />

the serial link was disconnected and connected back again. It shows the inner scenes behind the<br />

PPP link establishment and authentication phases.<br />

Note: With bidirectional authentication, each router sends and receives CHAP challenges.<br />

RT2#debug ppp authentication<br />

PPP authentication debugging is on<br />

RT2#<br />

00:21:35: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up<br />

00:21:35: Se0/0 PPP: Using default call direction<br />

00:21:35: Se0/0 PPP: Treating connection as a dedicated line<br />

00:21:35: Se0/0 CHAP: O CHALLENGE id 40 len 24 from "RT2"<br />

00:21:35: Se0/0 CHAP: I CHALLENGE id 9 len 24 from "RT1"<br />

00:21:35: Se0/0 CHAP: O RESPONSE id 9 len 24 from "RT2"<br />

00:21:35: Se0/0 CHAP: I RESPONSE id 40 len 24 from "RT1"<br />

00:21:35: Se0/0 CHAP: O SUCCESS id 40 len 4<br />

00:21:35: Se0/0 CHAP: I SUCCESS id 9 len 4<br />

00:21:35: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed<br />

state to up<br />

RT2#<br />

- An O indicates an outgoing message while an I indicates an incoming message.<br />

156<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!