Name

show route — Print information about a specific route.

SYNOPSIS

show route <IPPrefix> [table=<routetable>]

DESCRIPTION

Prints information about a specific route - the one that matches (most-specific / longest-prefix match) a specified destination prefix, or an IP address (when specifying a /32 prefix). The full list of all routes can be obtained using the show routes command. When used with a /32 prefix (i.e. a full IP address) this command can be used to show which route is used to reach that destination IP address.

EXAMPLE

With a subnet defined as <subnet ip="10.90.10.10/24"/>, a route will have been automatically created, as described in Section 8.2.1.

ruby> sh route 10.90.10.0/24
Route 10.90.10.0/24
 ETHERNET: Source=SUBNET Metric=MAX Subnet=4

      

The route type is shown as ETHERNET - a direct route to a locally-attached subnet - the 'source' of the route (how it was created) is SUBNET, meaning it has been automatically created as a result of a subnet definition. (See the show routes for other route types).