28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

aviva@RouterG# commit<br />

aviva@RouterG# show<br />

area 0.0.0.0 {<br />

inactive: interface fe-0/0/1.0;<br />

interface fe-1/0/1.0;<br />

}<br />

To start OSPF again on the interface, reactivate it:<br />

[edit protocols ospf]<br />

aviva@RouterG# activate area 0.0.0.0 interface fe-0/0/1.0<br />

aviva@RouterG# commit<br />

You can also temporarily disable OSPF on the router:<br />

[edit protocols ospf]<br />

aviva@RouterG# set disable<br />

aviva@RouterG# commit and-quit<br />

aviva@RouterG> show ospf neighbor<br />

OSPF instance is not running<br />

12.15 Tracing OSPF Protocol Traffic<br />

Problem<br />

You are setting up OSPF on your network and want to keep a running log of OSPF<br />

protocol packets that the router is sending to help track any problems that might<br />

occur during the configuration process.<br />

Solution<br />

Set up a tracing file that captures information about OSPF protocol operations:<br />

[edit protocols ospf]<br />

aviva@RouterG# set traceoptions file ospf-log<br />

aviva@RouterG# set traceoptions flag hello<br />

aviva@RouterG# set traceoptions flag error<br />

aviva@RouterG# set traceoptions flag general<br />

To stop the tracing, remove the traceoptions statement from the configuration:<br />

[edit protocols ospf]<br />

aviva@RouterG# delete traceoptions<br />

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

To debug OSPF operations, use the JUNOS tracing facility to track the packets that<br />

OSPF is sending. You specify the name of the file to which you want to collect the<br />

information and the type of information you want to trace. In this example, we are<br />

logging general OSPF traffic information as well as Hello packets and errors in the<br />

ospf-log file, which is on the router’s hard disk in the directories /var/log (on M-series<br />

and T-series routers) and /cf/var/log (on J-series routers).<br />

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

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

Tracing OSPF Protocol Traffic | 413

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

Saved successfully!

Ooh no, something went wrong!