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.

Broadcast packets 0 [0]<br />

Multicast packets 0 [0]<br />

Packet pad count 0 [0]<br />

Packet error count 0 [0]<br />

Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'<br />

The output updates every second, so you can see we’ve been watching for 134 seconds<br />

and the current time is 16:35. The second line shows the delay, which is how<br />

many milliseconds it took to display the statistics. The first number, here 2, is the<br />

time difference for the currently displayed statistics. The second number, here 0, is<br />

the shortest time difference since the monitoring started, and the third number, here<br />

9, is the longest time difference since monitoring started.<br />

The next two lines briefly describe the interface. The traffic and error statistics and the<br />

active alarm and defects sections parallel the fields in the show interfaces extensive<br />

command output. The input and output MAC/filter statistics show some of the information<br />

that’s in the MAC and filter statistics sections of the show command output.<br />

The bottom line contains commands you can issue. You can scroll through all the<br />

router’s interfaces (Next='n')—they appear in the same order as in the show interfaces<br />

terse command—or you can name a specific interface to display (Interface='i'):<br />

New interface:<br />

Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'<br />

The remaining commands freeze (f) and unfreeze (t) the display, zero the statistics<br />

(c), and return to the CLI (q).<br />

See Also<br />

FreeBSD, http://www.freebsd.org/ports/net-mgmt.html<br />

7.3 Setting an IP Address for the Router<br />

Problem<br />

You want to assign an address to the router itself so that you can reach it at all times,<br />

even when a particular interface is not available and so that applications such as<br />

SNMP can always reach the router.<br />

Solution<br />

Use the following command to configure a permanent address for the router:<br />

[edit]<br />

aviva@RouterA# set interfaces lo0 unit 0 family inet address 192.168.16.1/32<br />

Setting an IP Address for the Router | 201<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!