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

11.14. Tracing IS-IS Protocol Traffic

Problem

You are setting up IS-IS on your network and want to keep a running log of IS-IS protocol packets that the router is sending to help you track any problems that might occur during the configuration process.

Solution

Set up a tracing file that captures information about IS-IS protocol operations:

	[edit protocols isis]
	aviva@RouterJ# set traceoptions file isis-logs
	aviva@RouterJ# set traceoptions flag error
	aviva@RouterJ# set traceoptions flag general
	aviva@RouterJ# set traceoptions flag normal

To stop the tracing, remove the traceoptions statement from the configuration:

	[edit protocols isis]
	aviva@RouterJ# delete traceoptions

Discussion

To debug IS-IS operations, use the JUNOS tracing facility to track the packets that IS-IS is sending and receiving. You specify the name of the file to which you want to collect the information and the type of information you want to trace. In this example, we set three flags to track normal operations and errors in the file isis-logs, which is on the router's hard disk in the directory /var/log (on M-series and T-series routers) and /cf/var/log (on J-series routers).

When you are first bringing up an IS-IS network, you may find that an adjacency is not establishing between two Level 1 routers:

	aviva@RouterJ> show isis adjacency
	Interface             System          L State       Hold (secs) SNPA
	fe-0/0/1.0            RouterF         1 Down                 0 0:5:85:c1:86:31
	fe-1/0/0.0            RouterH         2 Up                  22 0:5:85:c1:d1:f4
	fe-1/0/1.0            RouterG         2 Up                  24 0:5:85:c2:2e:f5

The logfile ...

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