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.

RIPv2 Updates Ignored 0 0 0<br />

Authentication Failures 0 0 0<br />

RIP Requests Received 0 0 0<br />

RIP Requests Ignored 0 0 0<br />

10.7 Tracing RIP Protocol Traffic<br />

Problem<br />

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

updates that the router is sending to help you track any problems that might<br />

occur during the configuration process.<br />

Solution<br />

You set up a trace file that captures all information about RIP protocol update<br />

messages:<br />

[edit protocols rip]<br />

aviva@RouterA# set traceoptions file rip-update-log<br />

aviva@RouterA# set traceoptions flag update<br />

aviva@RouterA# show<br />

traceoptions {<br />

file rip-update-log;<br />

flag update;<br />

}<br />

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

When you need to debug RIP operations, you can use the JUNOS tracing facility to<br />

track the packets that RIP is sending. You specify the name of the file to which you<br />

want to collect the information and the type of information you want to trace. In this<br />

example, we are logging RIP update traffic information in the file named rip-updatelog,<br />

which is on the router’s hard disk in the directory /var/log.<br />

To see the RIP protocol update messages, look at the contents of the file:<br />

aviva@RouterA> show log rip-update-log<br />

Mar 31 10:10:47 trace_on: Tracing to "/var/log/rip-update-log" started<br />

Mar 31 10:10:51 received response: command 2, version 2, mbz: 0; 5 routes.<br />

Mar 31 10:11:00 received response: command 2, version 2, mbz: 0; 8 routes.<br />

Mar 31 10:11:13 Preparing to send RIPv2 updates.<br />

Mar 31 10:11:13 Update job: sending 20 msgs; group: alpha-rip-group.<br />

Mar 31 10:11:13 nbr se-0/0/3.0; msgp: 0x866ee00.<br />

Mar 31 10:11:13<br />

sending msg 0x866ee04, 6 rtes<br />

Mar 31 10:11:13 nbr se-0/0/3.0 done.<br />

Mar 31 10:11:13 Group alpha-rip-group done.<br />

Mar 31 10:11:13 New group beta-rip-group.<br />

Mar 31 10:11:13 New nbr fe-0/0/1.0; msgp 0x8672000.<br />

Mar 31 10:11:13<br />

sending msg 0x8672004, 8 rtes<br />

Mar 31 10:11:13 nbr fe-0/0/1.0 done.<br />

346 | Chapter 10: RIP<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!