Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

It is currently Tue Dec 07, 2021 4:49 am

Message body:
Enter your message here, it may contain no more than 60000 characters. 

:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.

Topic review - FreeBSD list the outgoing interface for packets to a specific IP destination
Author Message
Post subject: FreeBSD list the outgoing interface for packets to a specific IP destination  |  Post Posted: Mon Jul 22, 2013 10:12 am
Man route quote:
# man route
ROUTE(8) FreeBSD System Manager's Manual ROUTE(8)

route -- manually manipulate the routing tables

route [-dnqtv] command [[modifiers] args]

The route utility is used to manually manipulate the network routing
tables. It normally is not needed, as a system routing table management
daemon, such as routed(8), should tend to this task.

The route utility supports a limited number of general options, but a
rich command language, enabling the user to specify any arbitrary request
that could be delivered via the programmatic interface discussed in

The following options are available:

-d Run in debug-only mode, i.e., do not actually modify the routing

-n Bypass attempts to print host and network names symbolically when
reporting actions. (The process of translating between symbolic
names and numerical equivalents can be quite time consuming, and
may require correct operation of the network; thus it may be
expedient to forget this, especially when attempting to repair
networking operations).

-t Run in test-only mode. /dev/null is used instead of a socket.

-v (verbose) Print additional details.

-q Suppress all output from the add, change, delete, and flush com-

The route utility provides the following commands:

add Add a route.
flush Remove all routes.
delete Delete a specific route.
del Another name for the delete command.
change Change aspects of a route (such as its gateway).
get Lookup and display the route for a destination.
monitor Continuously report any changes to the routing information
base, routing lookup misses, or suspected network partition-

The monitor command has the syntax:

route [-n] monitor

The flush command has the syntax:

route [-n] flush [family]

Get the outgoing interface for traffic destined for specific IP address.
# route get
   route to:
destination: default
       mask: default
  interface: vlan10
recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      1500         0 
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list

Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]