28.06.2014 Views

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

04:26:16: Se0/1 PPP: Treating connection as a dedicated line<br />

04:26:16: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up<br />

04:26:16: Se0/1 PPP: Phase is AUTHENTICATING, <strong>by</strong> both<br />

04:26:16: Se0/1 PAP: O AUTH-REQ id 32 len 21 from "prophet"<br />

04:26:16: Se0/1 PAP: I AUTH-REQ id 32 len 21 from "prophet"<br />

04:26:16: Se0/1 PAP: Authenticating peer prophet<br />

04:26:16: Se0/1 PAP: O AUTH-ACK id 32 len 5<br />

04:26:16: Se0/1 PAP: I AUTH-ACK id 32 len 5<br />

04:26:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface<br />

Serial0/1, changed state to up<br />

leftist#<br />

From the leftist router this time we see a request from “prophet” on s0/1 and then<br />

an authorization request (meaning “Ok I found you, I accept your username and<br />

password”). Then a couple of acknowledgements and acknowledgement of<br />

acknowledgements and the line comes up ready to communicate!<br />

9. Let’s turn off debugging. Use “undebug all” or “undebug ppp authentication.”<br />

10. Let’s switch to CHAP. First, start <strong>by</strong> removing the PAP stuff:<br />

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

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

leftist(config-if)#exit<br />

leftist(config)#no username prophet password legodoom<br />

urvile(config)#int s0/1<br />

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

urvile(config-if)#exit<br />

urvile(config)#no username prophet password legodoom<br />

One way we could do this is to use the hostnames of the routers and the enable<br />

passwords for easy access.<br />

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

leftist(config-if)#enc ppp<br />

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

leftist(config-if)#exit<br />

leftist(config)#username urvile password cisco<br />

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

urvile(config-if)#enc ppp<br />

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

urvile(config-if)#exit<br />

urvile(config)#username leftist password cisco<br />

But, generally we want to have remote users whose names we can input for<br />

CHAP access to the router. This actually makes more sense and is more of a<br />

384

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

Saved successfully!

Ooh no, something went wrong!