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.

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

5. Now let’s set up PPP with PAP authentication. Just remember with our<br />

encapsulations on serial lines what we do on one end we must do on the other end<br />

too. If you just use “ppp authentication pap” you will not be able to have a ppp<br />

connection because no username/password authentication will be able to take<br />

place.<br />

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

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

terminus(config-if)#ppp authentication pap<br />

terminus(config-if)#ppp pap sent-username prophet password legodoom<br />

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

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

Before we change the other end of the line let’s look at a “failed” PPP negotiation<br />

process. Here we will see s0/1 refusing the connection because we have not set<br />

up authentication on it yet (notice how we never make it past the LCP negotiation<br />

phase):<br />

terminus#debug ppp negotiation<br />

PPP protocol negotiation debugging is on<br />

terminus#<br />

01:18:42: Se0/0 LCP: I CONFREQ [Listen] id 208 len 10<br />

01:18:42: Se0/0 LCP: MagicNumber 0x01DE98E6 (0x050601DE98E6)<br />

01:18:42: Se0/0 LCP: O CONFREQ [ACKsent] id 109 len 14<br />

01:18:42: Se0/0 LCP: AuthProto PAP (0x0304C023)<br />

01:18:42: Se0/0 LCP: MagicNumber 0x042BA23D (0x0506042BA23D)<br />

01:18:42: Se0/0 LCP: I CONFREJ [ACKsent] id 109 len 8<br />

01:18:42: Se0/0 LCP: AuthProto PAP (0x0304C023)<br />

(redundant lines removed)<br />

01:18:42: Se0/0 PPP: Closing connection because remote won't<br />

authenticate<br />

01:18:42: Se0/0 LCP: O TERMREQ [ACKsent] id 111 len 4<br />

01:18:42: Se0/0 LCP: O CONFREQ [TERMsent] id 112 len 14<br />

01:18:42: Se0/0 LCP: AuthProto PAP (0x0304C023)<br />

01:18:42: Se0/0 LCP: MagicNumber 0x042BA23D (0x0506042BA23D)<br />

01:18:42: Se0/0 LCP: I TERMACK [TERMsent] id 111 len 4<br />

01:18:42: Se0/0 LCP: State is Closed<br />

01:18:42: Se0/0 PPP: Phase is DOWN<br />

01:18:42: Se0/0 PPP: Phase is ESTABLISHING, Passive Open<br />

01:18:42: Se0/0 LCP: State is Listen<br />

01:18:44: Se0/0 LCP: TIMEout: State Listen<br />

381

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

Saved successfully!

Ooh no, something went wrong!