display ip routing-table
Use display ip routing-table to display routing table information.
Syntax
display ip routing-table [ all-vpn-instance | vpn-instance vpn-instance-name ] [ verbose ]
display ip routing-table [ all-routes ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-vpn-instance: Displays routing table information for all VPN instances.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing table information for the public network.
all-routes: Displays routing table information for the public network and all VPN instances.
verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays only brief information about active routes.
Usage guidelines
If you do not specify any parameters, this command displays routing table information for the public network.
Examples
# Display brief information about active routes in the routing table.
<Sysname> display ip routing-table Destinations : 12 Routes : 12 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.40 Vlan11 192.168.1.0/32 Direct 0 0 192.168.1.40 Vlan11 192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.40 Vlan11 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# Display brief routing table information for the public network and all VPN instances.
<Sysname> display ip routing-table all-routes VPN instance: public instance Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 1.1.1.0/24 Static 60 0 192.168.47.4 Vlan11 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 VPN instance: vpn1 Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 1.1.2.0/24 Static 60 0 2.2.1.1 Vlan11 3.3.1.0/24 BGP 255 0 55.1.1.2 Vlan12 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# Display brief routing table information for all VPN instances.
<Sysname> display ip routing-table all-vpn-instance VPN instance: vpn1 Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 1.1.2.0/24 Static 60 0 2.2.1.1 Vlan11 3.3.1.0/24 BGP 255 0 55.1.1.2 Vlan12 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 VPN instance: vpn2 Destinations : 9 Routes : 9 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 1.1.3.0/24 Static 60 0 3.3.1.1 Vlan13 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
Table 2: Command output
Field | Description |
---|---|
VPN instance | Public network or VPN instance for which the routing table is displayed. For the public network, this field displays public instance. For a VPN instance, this field displays the VPN instance name. |
Destinations | Number of destination addresses. |
Routes | Number of routes. |
Destination/Mask | Destination address/mask length. |
Proto | Protocol that installed the route. |
Pre | Preference of the route. |
Cost | Cost of the route. |
NextHop | Next hop address of the route. |
Interface | Output interface for packets to be forwarded along the route. |
Summary count | Number of routes. |
# Display detailed information about all routes in the routing table.
<Sysname> display ip routing-table verbose Destinations : 13 Routes : 13 Destination: 0.0.0.0/32 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 08h34m37s Cost: 0 Preference: 0 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000000 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1000c OrigNextHop: 127.0.0.1 Label: NULL RealNextHop: 127.0.0.1 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: InLoopBack0 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A Destination: 1.1.1.0/24 Protocol: Static Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0 Preference: 60 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.47.4 Label: NULL RealNextHop: 192.168.47.4 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: Vlan-interface11 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A Destination: 1.2.3.4/32 Protocol: BGP instance default Process ID: 0 SubProtID: 0x1 Age: 02h38m34s Cost: 0 Preference: 255 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 200 NibID: 0x16000000 LastAs: 200 AttrID: 0x2 Neighbor: 2.2.3.4 Flags: 0x10060 OrigNextHop: 2.2.3.4 Label: NULL RealNextHop: 2.2.3.4 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: Vlan-interface11 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A ...
# Display detailed routing table information for all VPN instances.
<Sysname> display ip routing-table all-vpn-instance verbose VPN instance: vpn1 Destinations : 1 Routes : 1 Destination: 0.0.0.0/32 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 08h34m37s Cost: 0 Preference: 0 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: vpn1 TableID: 0x2 OrigAs: 0 NibID: 0x10000000 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1000c OrigNextHop: 127.0.0.1 Label: NULL RealNextHop: 127.0.0.1 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: InLoopBack0 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A VPN instance: vpn2 Destinations : 1 Routes : 1 Destination: 1.1.1.0/24 Protocol: Static Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0 Preference: 60 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: vpn2 TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.47.4 Label: NULL RealNextHop: 192.168.47.4 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: Vlan-interface11 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A ...
Table 3: Command output
Field | Description |
---|---|
VPN instance | Public network or VPN instance for which the routing table is displayed. For the public network, this field displays public instance. For a VPN instance, this field displays the VPN instance name. |
Destinations | Number of destination addresses. |
Routes | Number of routes. |
Destination | Destination address/mask length. |
Protocol | Protocol that installed the route. |
SubProtID | ID of the subprotocol for routing. |
Age | Time for which the route has been in the routing table. |
Cost | Cost of the route. |
Preference | Preference of the route. |
IpPre | IP precedence. |
QosLocalID | Local QoS ID. |
Tag | Route tag. |
State | Route status:
|
OrigTblID | Original routing table ID. |
OrigVrf | Original VPN instance that the route belongs to. This field displays default-vrf if the route is on the IPv4 public network. |
TableID | ID of the routing table. |
OrigAs | Original AS number. |
NibID | ID of the next hop. |
LastAs | Last AS number. |
AttrID | Attribute ID. |
Neighbor | Address of the neighbor determined by the routing protocol. |
Flags | Flags of the route. |
OrigNextHop | Next hop address of the route. |
RealNextHop | Real next hop of the route. |
BkLabel | Backup label. |
BkNexthop | Backup next hop. |
Tunnel ID | Tunnel ID. |
Interface | Output interface for packets to be forwarded along the route. |
BkTunnel ID | Backup tunnel ID. |
BkInterface | Backup output interface. |
FtnIndex | Index of the FTN entry. |
TrafficIndex | Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid. |
Connector | BGP connector attribute exchanged between BGP peers along with a VPN IPv4 route. The value of the attribute is the IP address of the remote PE device. The BGP connector attribute is used for MD VPN. This field displays N/A if the BGP connector attribute is not supported. |
Summary count | Number of routes. |