28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Solution<br />

Use the show interfaces command to see the status of the interfaces on the router.<br />

With no options, this command shows the status of all interfaces on the router:<br />

aviva@router1> show interfaces<br />

You can also look at the status for a particular interface:<br />

aviva@router1> show interfaces fe-0/0/0<br />

If you want shorter summaries of the status, use one of these command versions:<br />

aviva@router1> show interfaces brief<br />

aviva@router1> show interfaces terse<br />

For maximum information for debugging purposes, use one of these commands:<br />

aviva@router1> show interfaces detail<br />

aviva@router1> show interfaces extensive<br />

<strong>Discussion</strong><br />

Because the operation of the router revolves around the network interfaces, you<br />

often need to get information about the interfaces to check status or to troubleshoot<br />

a router or network problem. The basic commands for doing this are variations of<br />

the show interfaces command. To just find out what PICs are installed and which<br />

interfaces are configured, use the show interfaces terse command (see Recipe 7.12).<br />

For basic information about the physical and logical interface settings, use the show<br />

interfaces command, or for an abridged view, use the show interfaces brief command.<br />

The show interfaces detail command adds traffic statistics and queue<br />

counters, and the show interfaces extensive command adds alarms, error statistics,<br />

and additional counters.<br />

The output of these commands varies depending on the type of interface. However,<br />

the general format of the information is the same for all interfaces, so it’s worth<br />

examining the output of one so you can become familiar with what to expect in the<br />

output. Here’s the information displayed by the show interfaces command for a Fast<br />

Ethernet interface:<br />

aviva@router1> show interfaces fe-0/0/0<br />

Physical interface: fe-0/0/0, Enabled, Physical link is Up<br />

Interface index: 128, SNMP ifIndex: 79<br />

Description: to nutmeg fe-000<br />

Link-level type: Ethernet, MTU: 1514, Speed: 100mbps, Loopback: Disabled,<br />

Source filtering: Disabled, Flow control: Enabled<br />

Device flags : Present Running<br />

Interface flags: SNMP-Traps 16384<br />

Link flags : 4<br />

CoS queues : 4 supported<br />

Current address: 00:05:85:02:a4:00, Hardware address: 00:05:85:02:a4:00<br />

Last flapped : 2005-05-12 14:58:08 PDT (05:04:29 ago)<br />

Input rate : 0 bps (0 pps)<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Viewing Interface Status | 195

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

Saved successfully!

Ooh no, something went wrong!