display ip routing-table vpn-instance (All views)

Function

The display ip routing-table table-name command displays information about a specified IPv4 routing table.

The display ip routing-table vpn-instance command displays information about the routing table of an IPv4 VPN instance.

Format

display ip routing-table vpn-instance vpn-instance-name [ table-name { localmt | msr } ] ip-address { mask | mask-length } ip-address { mask | mask-length } [ verbose ]

display ip routing-table vpn-instance vpn-instance-name [ table-name localmt ] protocol { bgp | direct | isis | rip | static | ospf | unr } { verbose | inactive }

display ip routing-table vpn-instance vpn-instance-name table-name { localmt | msr } [ time-range min-age max-age ]

display ip routing-table table-name { localmt | mbgp | msr } [ time-range min-age max-age ]

Parameters

Parameter Description Value
vpn-instance-name

Displays information about the routing table of an IPv4 address family-enabled VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

localmt

Displays information about the routing table of the local multi-topology routing table.

-

ip-address

Displays information about a route to a specified IP destination address.

The value is in dotted decimal notation.

mask

Specifies mask.

The mask is in dotted decimal notation.

mask-length

Specifies the length of the mask.

The value is an integer ranging from 0 to 32.

verbose

Displays detailed information about active and inactive routes.

-

msr

Displays information about the routing table of the multicast static routing table.

-

protocol

Displays routes of a specified protocol.

-

bgp

Displays BGP routes.

-

direct

Displays direct routes.

-

isis

Displays IS-IS routes.

-

rip

Displays RIP routes.

-

static

Displays static routes.

-

ospf

Displays OSPF routes.

-

unr

Displays UNRs.

-

inactive

Displays the summary of inactive routes only.

-

time-range

Displays routes that are generated within a specified period.

-

min-age

Specifies the start generation time.

The value is a string of characters, in the format of XXdXXhXXmXXs.

max-age

Specifies the end generation time.

The value is a string of characters, in the format of XXdXXhXXmXXs.

mbgp

Displays information about the routing table of the multicast BGP routing table.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
route-base read

Usage Guidelines

Usage Scenario

When the verbose parameter is not specified, information about only one route is displayed in each line. The contents include the destination address, mask length, protocol, priority, route cost, route flag, next hop, and outbound interface. This command displays only the preferred routes.

Precautions

After learning the ARP entry of a peer end, VLANIF interfaces, QinQ interfaces, or QinQ VLAN tag termination sub-interfaces generate a 32-bit ARP Vlink direct route, and the route is displayed in the command output. Regular physical interfaces do not generate a 32-bit ARP Vlink direct route in this case.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display all the direct routes of VPN instance named vpn1.
<HUAWEI> display ip routing-table vpn-instance vpn1 protocol direct
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
vpn4 routing table : Direct
         Destinations : 4           Routes : 4

Direct routing table status : <Active>
         Destinations : 4           Routes : 4

Destination/Mask    Proto  Pre  Cost     Flags NextHop         Interface

        1.1.1.0/24  Direct 0    0           D  1.1.1.1         GigabitEthernet0/1/1
        1.1.1.1/32  Direct 0    0           D  127.0.0.1       GigabitEthernet0/1/1
      1.1.1.255/32  Direct 0    0           D  127.0.0.1       GigabitEthernet0/1/1
255.255.255.255/32  Direct 0    0           D  127.0.0.1       InLoopBack0
Direct routing table status : <Inactive>
         Destinations : 0           Routes : 0
Table 1 Description of the display ip routing-table vpn-instance (All views) command output
Item Description
Route Flags

Route flag:

  • R: indicates an iterated route.
  • D: indicates a route that is downloaded to the FIB.
  • T: indicates a route whose next hop belongs to a VPN instance.
  • B: indicates a black-hole rout.
Direct routing table status

Status of direct routes:

  • Inactive.
  • Active.
vpn4 routing table

vpn4 routing table.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination/Mask

Address and mask length of the destination network or host.

Proto

Routing protocol.

Pre

Priority.

Cost

Route cost.

Flags

Route flags in the header of the routing table.

NextHop

Next hop.

Interface

Outbound interface through which the next hop is reachable.

RouteColor

Route color value.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >