display ip routing-table

Use display ip routing-table to display IPv4 routing information.

Syntax

display ip routing-table

Views

Any view

Examples

# Display IPv4 routing information.

<boot> display ip routing-table
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.116.0   *               255.255.255.0   U     0      0        0 m-eth0
default         192.168.116.1   0.0.0.0         UG    0      0        0 m-eth0

Table 36: Command output

Field

Description

Kernel IP routing table

IPv4 routing information.

Destination

Destination address. For the default route, the value of this field is default.

Gateway

Gateway address. If no gateway is needed, the value of this field is an asterisk (*).

Genmask

Subnet mask. For the default route, the value of this field is 0.0.0.0.

Flags

Flags:

  • A—The route was learned from a route advertisement.

  • C—The route is a cached route used to fast forward packets.

  • D—The route is the default route learned through neighbor discovery.

  • G—The route is a gateway route.

  • H—The route is a host route.

  • U—The route can be used.

Metric

Cost of the route.

Ref

Number of times the route has been referenced by other route entries.

Use

Number of times the route has been matched.

Iface

Outbound interface.