Networking Guide
Chapter 10, Configuring the Simple Network Management Protocol (SNMP)

Getting routing information

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. 

Example 10-10 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: