DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the Simple Network Management Protocol (SNMP)

Getting routing information

The getroute(ADMN) command is used to retrieve routing information for all IP networks and subnetworks, as seen by the host to which it is addressed. The syntax of getroute is getroute node community.

The following shows sample output from a getroute invocation.

getroute example

   # getroute paris public
   Route to: 0.0.0.0 via: 10.0.246.1  on if: 1 metric: 2 type: 4 proto: 8
   Route to: 127.0.0.1 via: 127.0.0.1  on if: 2 metric: 0 type: 3 proto: 2
   Route to: 10.0.0.0 via: 10.0.246.1  on if: 1 metric: 2 type: 4 proto: 8
   Route to: 10.0.118.0 via: 10.0.246.1  on if: 1 metric: 2 type: 4 proto: 8
   Route to: 10.0.246.0 via: 10.0.246.3  on if: 1 metric: 0 type: 3 proto: 2

See also:


Next topic: Getting a subset of routing information
Previous topic: Getting routing information for a given network

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003