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.

One last layer 3 tool…you can also turn your router into a mini-layer 3 protocol<br />

inspector with “debug” commands. Be careful when using these because they<br />

save all their information in RAM/DRAM. Too much information can *choke*<br />

out the performance of your router so only use debug commands sparingly. To<br />

view ping packets (aka ICMP packets) use the debug ip icmp command. You<br />

should see something like this.<br />

Randy#debug ip icmp<br />

ICMP packet debugging is on<br />

Randy#<br />

01:02:29: ICMP: time exceeded (time to live) sent to 192.168.3.2 (dest<br />

was 192.168.4.2)<br />

01:02:29: ICMP: time exceeded (time to live) sent to 192.168.3.2 (dest<br />

was 192.168.4.2)<br />

01:02:29: ICMP: time exceeded (time to live) sent to 192.168.3.2 (dest<br />

was 192.168.4.2)<br />

01:02:29: ICMP: dst (192.168.3.1) port unreachable sent to 192.168.3.2<br />

01:02:31: ICMP: dst (192.168.3.1) port unreachable sent to 192.168.3.2<br />

01:02:32: ICMP: dst (192.168.3.1) port unreachable sent to 192.168.3.2<br />

Randy#<br />

**Don’t forget to use undebug all or undebug ip icmp when you are finished.**<br />

4. Finally Telnet (terminal emulation), an application layer program, tests the<br />

functionality of all 7 layers. If you can telnet from one router to another, then<br />

everything should be working fine and you won’t need anything from this lab.<br />

Here is an example of using telnet from Randy to Ward. You should see:<br />

Randy#telnet 192.168.30.2<br />

Trying 192.168.30.2 ... Open<br />

User Access Verification<br />

Password:<br />

Ward><br />

One problem with telnet: if a vty password is not “set” on the other router you<br />

will not be able to access the router, even though everything is working fine.<br />

Let’s look at what you will see if you do not have a vty password set:<br />

Randy#telnet 192.168.30.2<br />

Trying 192.168.30.2 ... Open<br />

Password required, but none set<br />

[Connection to 192.168.30.2 closed <strong>by</strong> foreign host]<br />

Randy#<br />

194

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

Saved successfully!

Ooh no, something went wrong!