O'Reilly logo

JUNOS Cookbook by Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.1. Viewing Interface Status

Problem

You want to check the status of an interface.

Solution

Use the show interfaces command to see the status of the interfaces on the router. With no options, this command shows the status of all interfaces on the router:

	aviva@router1> show interfaces

You can also look at the status for a particular interface:

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

If you want shorter summaries of the status, use one of these command versions:

	aviva@router1>  
show interfaces brief
	aviva@router1> show interfaces terse

For maximum information for debugging purposes, use one of these commands:

	aviva@router1>  
show interfaces detail
	aviva@router1> show interfaces extensive

Discussion

Because the operation of the router revolves around the network interfaces, you often need to get information about the interfaces to check status or to troubleshoot a router or network problem. The basic commands for doing this are variations of the show interfaces command. To just find out what PICs are installed and which interfaces are configured, use the show interfaces terse command (see Recipe 7.12). For basic information about the physical and logical interface settings, use the show interfaces command, or for an abridged view, use the show interfaces brief command. The show interfaces detail command adds traffic statistics and queue counters, and the show interfaces extensive command adds alarms, error statistics, and additional counters.

The output of these commands varies depending ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required