0% found this document useful (0 votes)
8 views56 pages

12-Basic IP Routing Commands

The document outlines basic IP routing commands, including creating and managing IPv4 and IPv6 address families and displaying routing table information. It provides syntax, examples, and usage guidelines for commands like 'address-family ipv4', 'address-family ipv6', and 'display ip routing-table'. The content serves as a reference for network administrators to configure and troubleshoot routing protocols.

Uploaded by

amir.khttab22
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views56 pages

12-Basic IP Routing Commands

The document outlines basic IP routing commands, including creating and managing IPv4 and IPv6 address families and displaying routing table information. It provides syntax, examples, and usage guidelines for commands like 'address-family ipv4', 'address-family ipv6', and 'display ip routing-table'. The content serves as a reference for network administrators to configure and troubleshoot routing protocols.

Uploaded by

amir.khttab22
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Contents

Basic IP routing commands ································································1


address-family ipv4 ················································································································ 1
address-family ipv6 ················································································································ 1
display ip routing-table ··········································································································· 2
display ip routing-table acl ······································································································· 8
display ip routing-table ip-address ·························································································· 10
display ip routing-table prefix-list ···························································································· 13
display ip routing-table protocol ······························································································ 14
display ip routing-table statistics ····························································································· 15
display ip routing-table summary ···························································································· 17
display ipv6 rib graceful-restart ······························································································ 18
display ipv6 rib nib ··············································································································· 19
display ipv6 route-direct nib ··································································································· 21
display ipv6 routing-table ······································································································ 22
display ipv6 routing-table acl ································································································· 28
display ipv6 routing-table ipv6-address ···················································································· 31
display ipv6 routing-table prefix-list ························································································· 34
display ipv6 routing-table protocol··························································································· 35
display ipv6 routing-table statistics ·························································································· 37
display ipv6 routing-table summary ························································································· 39
display rib graceful-restart ····································································································· 39
display rib nib ····················································································································· 41
display route-direct nib ········································································································· 45
fib lifetime ·························································································································· 48
inter-protocol fast-reroute ······································································································ 49
ip route fast-switchover enable······························································································· 50
ipv6 route fast-switchover enable ··························································································· 50
non-stop-routing ·················································································································· 51
protocol lifetime··················································································································· 51
protocol nexthop recursive-lookup ·························································································· 52
reset ip routing-table statistics protocol ···················································································· 53
reset ipv6 routing-table statistics protocol ················································································· 54
rib····································································································································· 54
routing-table limit ················································································································· 55

i
Basic IP routing commands
address-family ipv4
Use address-family ipv4 to create the RIB IPv4 address family and enter its view, or enter the
view of the existing RIB IPv4 address family.
Use undo address-family ipv4 to delete the RIB IPv4 address family and all configurations in
the view.
Syntax
address-family ipv4
undo address-family ipv4
Default
No RIB IPv4 address family exists.
Views
RIB view
Predefined user roles
network-admin
Examples
# Create the RIB IPv4 address family and enter its view.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4]

address-family ipv6
Use address-family ipv6 to create the RIB IPv6 address family and enter its view, or enter the
view of the existing RIB IPv6 address family.
Use undo address-family ipv6 to delete the RIB IPv6 address family and all configurations in
the view.
Syntax
address-family ipv6
undo address-family ipv6
Default
No RIB IPv6 address family exists.
Views
RIB view
Predefined user roles
network-admin
Examples
# Create the RIB IPv6 address family and enter its view.

1
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv6
[Sysname-rib-ipv6]

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: Specifies 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.
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, the 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


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Direct 0 0 [Link] Vlan11
[Link]/32 Direct 0 0 [Link] Vlan11
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] Vlan11

2
[Link]/4 Direct 0 0 [Link] NULL0
[Link]/24 Direct 0 0 [Link] NULL0
[Link]/32 Direct 0 0 [Link] InLoop0

# Display brief information about active routes in the routing table 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


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Static 60 0 [Link] Vlan11
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/4 Direct 0 0 [Link] NULL0
[Link]/24 Direct 0 0 [Link] NULL0
[Link]/32 Direct 0 0 [Link] InLoop0

VPN instance: vpn1


Destinations : 10 Routes : 10

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Static 60 0 [Link] Vlan11
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/4 Direct 0 0 [Link] NULL0
[Link]/24 Direct 0 0 [Link] NULL0
[Link]/32 Direct 0 0 [Link] InLoop0

# Display information about IPv4 routes 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


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Static 60 0 [Link] Vlan11
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0

3
[Link]/4 Direct 0 0 [Link] NULL0
[Link]/24 Direct 0 0 [Link] NULL0
[Link]/32 Direct 0 0 [Link] InLoop0

VPN instance: vpn2


Destinations : 9 Routes : 9

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Static 60 0 [Link] Vlan13
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/4 Direct 0 0 [Link] NULL0
[Link]/24 Direct 0 0 [Link] NULL0
[Link]/32 Direct 0 0 [Link] InLoop0

Table 1 Command output

Field Description

Public network or VPN instance that the routing table belongs to. For the
VPN instance 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 : 2 Routes : 2

Destination: [Link]/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

4
TableID: 0x2 OrigAs: 0
NibID: 0x10000000 LastAs: 0
AttrID: 0xffffffff Neighbor: [Link]
Flags: 0x1000c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: [Link]/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: [Link]
Flags: 0x1008c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

# Display detailed information about all routes in the routing table for all VPN instances.
<Sysname> display ip routing-table all-vpn-instance verbose

VPN instance: vpn1


Destinations : 1 Routes : 1

Destination: [Link]/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: [Link]

5
Flags: 0x1000c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

VPN instance: vpn2


Destinations : 1 Routes : 1

Destination: [Link]/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: [Link]
Flags: 0x1008c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Table 2 Command output

Field Description

Public network or VPN instance that the routing table belongs to. For the public
VPN instance 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.

6
Field Description

QosLocalID Local QoS ID.


Tag Route tag.
Route status:
• Active—Active unicast route.
• Adv—Route that can be advertised.
• Inactive—Inactive route.
State
• NoAdv—Route that the router must not advertise.
• Vrrp—Routes generated by VRRP.
• Nat—Routes generated by NAT.
• TunE—Tunnel. This state is not supported in the current software version.

OrigTblID Original routing table ID.


Original VPN instance that the route belongs to. This field displays default-vrf if the
OrigVrf
route is on the 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.
SRLabel Segment routing (SR) label.
BkSRLabel Backup segment routing (SR) label.
This field is not supported in the current software version.
Tunnel ID
Tunnel ID.
Interface Output interface for packets to be forwarded along the route.
This field is not supported in the current software version.
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.
This field is not supported in the current software version.
BGP connector attribute exchanged between BGP peers along with a VPN IPv4
Connector 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.

7
Field Description

This field is not supported in the current software version.


PathID
Add-Path ID of the BGP route.

display ip routing-table acl


Use display ip routing-table acl to display information about routes permitted by a basic
ACL.
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] acl
ipv4-acl-number [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
ipv4-acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999.
verbose: Displays detailed information about all routes permitted by the basic ACL. If you do not
specify this keyword, the command displays only brief information about active routes permitted by
the basic ACL.
Usage guidelines
If the specified ACL does not exist or has no rules configured, the command displays information
about all routes.
Examples
# Define basic ACL 2000 and set the route filtering rules.
<Sysname> system-view
[Sysname] acl basic 2000
[Sysname-acl-ipv4-basic-2000] rule permit source [Link] [Link]
[Sysname-acl-ipv4-basic-2000] rule deny source any

# Display brief information about active routes permitted by basic ACL 2000.
[Sysname-acl-ipv4-basic-2000] display ip routing-table acl 2000

Summary count : 4

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/24 Direct 0 0 [Link] Vlan11
[Link]/32 Direct 0 0 [Link] Vlan11
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] Vlan11

8
For command output, see Table 1.
# Display detailed information about all routes permitted by basic ACL 2000.
<Sysname> display ip routing-table acl 2000 verbose

Summary count : 4

Destination: [Link]/24
Protocol: Direct
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
Cost: 0 Preference: 0
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: [Link]
Flags: 0x10080 OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: [Link]/32
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 04h20m37s
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: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: [Link]
Flags: 0x1008c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: [Link]/32
Protocol: Direct

9
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
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: [Link]
Flags: 0x10004 OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: [Link]/32
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 04h20m37s
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: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: [Link]
Flags: 0x1008c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

For command output, see Table 2.

display ip routing-table ip-address


Use display ip routing-table ip-address to display information about routes to a specific
destination address.
Use display ip routing-table ip-address1 to ip-address2 to display information
about routes to a range of destination addresses.
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] ip-address
[ mask-length | mask ] [ longer-match ] [ verbose ]

10
display ip routing-table [ vpn-instance vpn-instance-name ] ip-address1 to
ip-address2 [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
ip-address: Specifies a destination IP address in dotted decimal notation.
mask-length: Specifies the mask length, an integer in the range of 0 to 32.
mask: Specifies the IP address mask in dotted decimal notation.
longer-match: Displays the route entry with the longest mask.
ip-address1 to ip-address2: Specifies a destination IP address range.
verbose: Displays detailed routing table information, including information about both active and
inactive routes. If you do not specify this keyword, the command displays brief information about
active routes.
Usage guidelines
Executing the command with different parameters yields different outputs.
• display ip routing-table ip-address
 The system ANDs the entered destination IP address with the subnet mask in each active
route entry.
 The system ANDs the destination IP address in each active route entry with its own subnet
mask.
If the two operations yield the same result for an entry, the entry is displayed.
• display ip routing-table ip-address mask
 The system ANDs the entered destination IP address with the entered subnet mask.
 The system ANDs the destination IP address in each active route entry with the entered
subnet mask.
If the two operations yield the same result for an entry with a subnet mask not greater than the
entered subnet mask, the entry is displayed.
• display ip routing-table ip-address longer-match
 The system ANDs the entered destination IP address with the subnet mask in each active
route entry.
 The system ANDs the destination IP address in each active route entry with its own subnet
mask.
If the two operations yield the same result for multiple entries, the entry with the longest mask
length is displayed.
• display ip routing-table ip-address mask longer-match
 The system ANDs the entered destination IP address with the entered subnet mask.
 The system ANDs the destination IP address in each active route entry with the entered
subnet mask.

11
If the two operations yield the same result for multiple entries with a mask not greater than the
entered subnet mask, the entry with the longest mask length is displayed.
• display ip routing-table ip-address1 to ip-address2
The system displays active route entries with destinations in the range of ip-address1/32 to
ip-address2/32.
Examples
# Display brief information about the routes to the destination IP address [Link].
<Sysname> display ip routing-table [Link]

Summary count : 3

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/8 Static 60 0 [Link] NULL0
[Link]/16 Static 60 0 [Link] NULL0
[Link]/24 Static 60 0 [Link] NULL0

# Display brief information about the routes to the destination IP address [Link] and mask length
20.
<Sysname> display ip routing-table [Link] 20

Summary count : 2

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/8 Static 60 0 [Link] NULL0
[Link]/16 Static 60 0 [Link] NULL0

# Display brief information about the most specific route to the destination address [Link].
<Sysname> display ip routing-table [Link] longer-match

Summary count : 1

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/24 Static 60 0 [Link] NULL0

# Display brief information about the most specific route to the destination IP address [Link] and
mask length 20.
<Sysname> display ip routing-table [Link] 20 longer-match

Summary count : 1

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/16 Static 60 0 [Link] NULL0

# Display brief information about the routes to destination addresses in the range of [Link] to
[Link].
<Sysname> display ip routing-table [Link] to [Link]

Summary count : 4

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/32 Direct 0 0 [Link] InLoop0

12
[Link]/24 Direct 0 0 [Link] Vlan2
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0

display ip routing-table prefix-list


Use display ip routing-table prefix-list to display routes permitted by an IP prefix list.
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] prefix-list
prefix-list-name [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63
characters.
verbose: Displays detailed information about all routes permitted by the IP prefix list. If you do not
specify this keyword, the command displays brief information about active routes permitted by the IP
prefix list.
Usage guidelines
If the specified IP prefix list does not exist, the command displays information about all routes.
Examples
# Create an IP prefix list named test to permit the route [Link]/24.
<Sysname> system-view
[Sysname] ip prefix-list test permit [Link] 24

# Display brief information about the active route permitted by the IP prefix list.
[Sysname] display ip routing-table prefix-list test

Summary count : 1

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/24 Direct 0 0 [Link] Vlan11

For command output, see Table 1.


# Display detailed information about all routes permitted by the IP prefix list.
[Sysname] display ip routing-table prefix-list test verbose

Summary count : 1

Destination: [Link]/24

13
Protocol: Direct
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
Cost: 0 Preference: 0
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: [Link]
Flags: 0x1008c OrigNextHop: [Link]
Label: NULL RealNextHop: [Link]
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

For command output, see Table 2.

display ip routing-table protocol


Use display ip routing-table protocol to display information about routes installed by a
protocol.
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] protocol
protocol [ inactive | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
protocol: Specifies a routing protocol.
inactive: Displays information about inactive routes. If you do not specify this keyword, the
command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. If you do not specify this keyword, the
command displays brief routing information.
Examples
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct

14
Summary count : 9

Direct Routing table status : <Active>


Summary count : 9

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/24 Direct 0 0 [Link] Vlan2
[Link]/32 Direct 0 0 [Link] Vlan2
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] Vlan2
[Link]/8 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0
[Link]/32 Direct 0 0 [Link] InLoop0

Direct Routing table status : <Inactive>


Summary count : 0

# Display brief information about static routes.


<Sysname> display ip routing-table protocol static

Summary count : 1

Static Routing table status : <Active>


Summary count : 0

Static Routing table status : <Inactive>


Summary count : 1

Destination/Mask Proto Pre Cost NextHop Interface


[Link]/24 Static 60 0 [Link] Vlan10

display ip routing-table statistics


Use display ip routing-table statistics to display IPv4 route statistics, including
numbers of total routes, routes installed by the protocol, routes marked as deleted, and active routes.
Syntax
display ip routing-table [ all-routes | all-vpn-instance | vpn-instance
vpn-instance-name ] statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Displays IPv4 route statistics for the public network and all VPN instances.

15
all-vpn-instance: Specifies 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.
Usage guidelines
If you do not specify any parameters, the command displays IPv4 route statistics for the public
network.
Examples
# Display IPv4 route statistics for the public network.
<Sysname> display ip routing-table statistics

Total prefixes: 15 Active prefixes: 15

Proto Routes Active Added Deleted


DIRECT 12 12 30 18
STATIC 3 3 5 2
RIP 0 0 0 0
OSPF 0 0 0 0
Total 15 15 35 20

# Display IPv4 route statistics for the public network and all VPN instances.
<Sysname> display ip routing-table all-routes statistics

Total prefixes: 11 Active prefixes: 11

Proto Routes Active Added Deleted


DIRECT 8 8 8 0
STATIC 3 3 5 2
RIP 0 0 0 0
OSPF 0 0 0 0
Total 11 11 13 2

# Display IPv4 route statistics for VPN instance vpn1.


<Sysname> display ip routing-table vpn-instance vpn1 statistics

Total prefixes: 11 Active prefixes: 11

Proto Routes Active Added Deleted


DIRECT 8 8 8 0
STATIC 3 3 5 2
RIP 0 0 0 0
OSPF 0 0 0 0
Total 11 11 13 2

# Display IPv4 route statistics for all VPN instances.


<Sysname> display ip routing-table all-vpn-instance statistics

Total prefixes: 11 Active prefixes: 11

Proto Routes Active Added Deleted


DIRECT 8 8 8 0

16
STATIC 3 3 5 2
RIP 0 0 0 0
OSPF 0 0 0 0
Total 11 11 13 2

Table 3 Command output

Field Description

Proto Protocol that installed the route.


Routes Number of routes installed by the protocol.
Active Number of active routes.
Number of routes added to the routing table after the router started up or the routing table
Added
was cleared most recently.

Deleted Number of routes marked as deleted, which will be cleared after a period.
Total Total number of routes.

display ip routing-table summary


Use display ip routing-table summary to display brief routing table information, including
maximum number of ECMP routes, maximum number of active routes, and number of remaining
active routes.
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] summary
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 brief routing table information for the public network.
Examples
# Display brief routing table information for the public network.
<Sysname> display ip routing-table summary

Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262126

# Display brief routing table information for the MPLS L3VPN instance vpn1.
<Sysname> display ip routing-table vpn-instance vpn1 summary

Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262134

17
Threshold value of active routes alert: 65100

Table 4 Command output

Field Description

Max ECMP Maximum number of ECMP routes supported by the system.


Max Active Route Maximum number of supported routes.
Remain Active Route Number of the remaining inactive routes.
Alarm threshold of active routes specified by using the
routing-table limit command in a VPN instance:
• Threshold value of active routes alert—This field is
displayed when the alarm threshold is specified by using the
routing-table limit number simply-alert
command. When the number of active routes exceeds the
alarm threshold, the system logs the event and sends traps but
still accepts active routes.
• Threshold value percentage of max active routes—This
Threshold value of active routes alert field is displayed when the alarm threshold is specified by
using the routing-table limit number
warn-threshold command, in the range of 1 to 100 in
percentage. When the percentage of active routes exceeds
the alarm threshold, the system logs the event and sends traps
but still accepts active routes. If the number of active routes
reaches the maximum number, no more routes can be added.
The percentage of active routes equals the number of active
routes divided by the maximum number of active routes
supported in a VPN instance, and multiplied by 100.

display ipv6 rib graceful-restart


Use display ipv6 rib graceful-restart to display IPv6 RIB GR state information.
Syntax
display ipv6 rib graceful-restart
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display IPv6 RIB GR state information.
<Sysname> display ipv6 rib graceful-restart
RIB GR state : Phase2-calculation end
RCOM GR state : Flush end
Protocol GR state:
No. Protocol Lifetime FD State Start/End
--------------------------------------------------
1 DIRECT 480 29 End No/No
2 STATIC 480 32 End No/No

For command output, see Table 8.

18
display ipv6 rib nib
Use display ipv6 rib nib to display next hop information in the IPv6 RIB.
Syntax
display ipv6 rib nib [ self-originated ] [ nib-id ] [ verbose ]
display ipv6 rib nib protocol protocol [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
self-originated: Displays information about next hops of self-originated routes in the IPv6 RIB.
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information in the IPv6 RIB. If you do not specify this keyword,
the command displays brief next hop information in the IPv6 RIB.
protocol protocol: Specifies a protocol by its name.
Examples
# Display brief next hop information in the IPv6 RIB.
<Sysname> display ipv6 rib nib
Total number of nexthop(s): 151

NibID: 0x20000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
IFIndex: 0x111 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0

NibID: 0x20000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
IFIndex: 0x112 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0

...

# Display detailed next hop information in the IPv6 RIB.


<Sysname> display ipv6 rib nib verbose
Total number of nexthop(s): 151

NibID: 0x20000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0

19
UserKey1: 0x0 Nexthop: ::
IFIndex: 0x111 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
RefCnt: 4 FlushRefCnt: 1
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::
RelyDepth: 0 RealNexthop: ::
Interface: NULL0 LocalAddr: ::
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0

NibID: 0x20000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
IFIndex: 0x112 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
RefCnt: 4 FlushRefCnt: 1
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::1
RelyDepth: 0 RealNexthop: ::1
Interface: InLoop0 LocalAddr: ::1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0

NibID: 0x26000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 121::2
IFIndex: 0x112 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Instance: default

NibID: 0x26000002 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 122::2
IFIndex: 0x112 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Instance: abc

...

For command output, see Table 9 and Table 10.

20
display ipv6 route-direct nib
Use display ipv6 route-direct nib to display next hop information for IPv6 direct routes.
Syntax
display ipv6 route-direct nib [ nib-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information for IPv6 direct routes. If you do not specify this
keyword, the command displays brief next hop information for IPv6 direct routes.
Examples
# Display brief next hop information for IPv6 direct routes.
<Sysname> display ipv6 route-direct nib
Total number of nexthop(s): 115

NibID: 0x20000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
IFIndex: 0x111 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0

NibID: 0x20000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
IFIndex: 0x112 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0

...

# Display detailed next hop information for IPv6 direct routes.


<Sysname> display ipv6 route-direct nib verbose
Total number of nexthop(s): 115

NibID: 0x20000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
IFIndex: 0x111 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
RefCnt: 1 FlushRefCnt: 0

21
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::
RelyDepth: 0 RealNexthop: ::
Interface: NULL0 LocalAddr: ::
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0

NibID: 0x20000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
IFIndex: 0x112 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
RefCnt: 1 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::1
RelyDepth: 0 RealNexthop: ::1
Interface: InLoop0 LocalAddr: ::1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0

...

For command output, see Table 11 and Table 12.

display ipv6 routing-table


Use display ipv6 routing-table to display IPv6 routing table information.
Syntax
display ipv6 routing-table [ all-vpn-instance | vpn-instance
vpn-instance-name ] [ verbose ]
display ipv6 routing-table [ all-routes ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-vpn-instance: Specifies 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.
all-routes: Displays IPv6 routing table information for the public network and all VPN instances.

22
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, the command displays IPv6 routing table information for the
public network.
Examples
# Display brief information about active routes in the IPv6 routing table.
<Sysname> display ipv6 routing-table

Destinations : 2 Routes : 2

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: FE80::/10 Protocol : Direct


NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0

# Display brief information about active routes in the IPv6 routing table for the public network and all
VPN instances.
<Sysname> display ipv6 routing-table all-routes

VPN instance: public instance


Destinations : 2 Routes : 2

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: FE80::/10 Protocol : Direct


NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0

VPN instance: vpn1


Destinations : 2 Routes : 2

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: 1:2::3:4/128 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

# Display IPv6 routing table information for all VPN instances.


<Sysname> display ipv6 routing-table all-vpn-instance

VPN instance: vpn1

23
Destinations : 2 Routes : 2

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: 1:2::3:4/128 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

VPN instance: vpn2


Destinations : 1 Routes : 1

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Table 5 Command output

Field Description

Public network or VPN instance that the IPv6 routing table belongs to. For
VPN instance 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 IPv6 address and prefix of the destination network or host.
NextHop Next hop address of the route.
Preference Preference of the route.
Interface Output interface for packets to be forwarded along the route.
Protocol Protocol that installed the route.
Cost Cost of the route.
Summary count Number of routes.

# Display detailed information about all routes in the IPv6 routing table.
<Sysname> display ipv6 routing-table verbose

Destinations : 2 Routes : 2

Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 19h23m02s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0

24
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 12::/96
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 00h01m47s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000003 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10080 OrigNextHop: ::
Label: NULL RealNextHop: ::
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

# Display detailed information about all routes in the IPv6 routing table for all VPN instances.
<Sysname> display ipv6 routing-table all-vpn-instance verbose

VPN instance: vpn1


Destinations : 2 Routes : 2

Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 19h23m02s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1

25
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 12::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 00h01m45s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Table 6 Command output

Field Description

Public network or VPN instance that the routing table belongs to. For the public
VPN instance network, this field displays public instance. For a VPN instance, this field displays
the VPN instance name.

Destination IPv6 address and prefix of the destination network or host.


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 Tag of the route.

26
Field Description

Route status:
• Active—Active unicast route.
• Adv—Route that can be advertised.
• Inactive—Inactive route.
State
• NoAdv—Route that the router must not advertise.
• Vrrp—Routes generated by VRRP.
• Nat—Routes generated by NAT.
• TunE—Tunnel. This state is not supported in the current software version.

OrigTblID Original routing table ID.


Original VPN instance that the route belongs to. This field displays default-vrf if the
OrigVrf
route is on the 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.
SRLabel SR label.
BkSRLabel Backup SR label.
This field is not supported in the current software version.
Tunnel ID
Tunnel ID.
Interface Output interface for packets to be forwarded along the route.
This field is not supported in the current software version.
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.
This field is not supported in the current software version.
BGP connector attribute exchanged between BGP peers along with a VPN IPv4
Connector 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 BGP connector
attribute is not supported.
Summary count Number of routes.
This field is not supported in the current software version.
PathID
Add-Path ID of the BGP route.

27
display ipv6 routing-table acl
Use display ipv6 routing-table acl to display routing information permitted by an IPv6
basic ACL.
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl
ipv6-acl-number [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
ipv6-acl-number: Specifies a basic IPv6 ACL by its number in the range of 2000 to 2999.
verbose: Displays detailed information about all routes permitted by the basic IPv6 ACL. If you do
not specify this keyword, the command displays only brief information about active routes permitted
by the basic IPv6 ACL.
Usage guidelines
If the specified IPv6 ACL does not exist or has no rules configured, the command displays
information about all IPv6 routes.
Examples
# Display brief information about active routes permitted by IPv6 ACL 2000.
<Sysname> display ipv6 routing-table acl 2000

Summary count : 6

Destination : ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: 12::/96 Protocol : Direct


NextHop : :: Preference: 0
Interface : Vlan11 Cost : 0

Destination: 12::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: 11::1/128 Protocol : O_INTER


NextHop : FE80::A1F:3FFF:FE45:206 Preference: 10
Interface : Vlan11 Cost : 2

28
Destination: FE80::/10 Protocol : Direct
NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0

Destination: FF00::/8 Protocol : Direct


NextHop : :: Preference: 0
Interface : NULL0 Cost : 0

For command output, see Table 5.


# Display detailed information about all routes permitted by IPv6 ACL 2000.
<Sysname> display ipv6 routing-table acl 2000 verbose

Summary count : 6

Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 19h29m12s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 12::/96
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 00h07m57s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000003 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10080 OrigNextHop: ::
Label: NULL RealNextHop: ::
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL

29
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 12::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 00h07m55s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 11::1/128
Protocol: O_INTER
Process ID: 1
SubProtID: 0x2 Age: 00h06m43s
Cost: 2 Preference: 10
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x23000003 LastAs: 0
AttrID: 0x ffffffff Neighbor: ::
Flags: 0x10041 OrigNextHop: FE80::A1F:3FFF:FE45:206
Label: NULL RealNextHop: FE80::A1F:3FFF:FE45:206
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: FE80::/10
Protocol: Direct
Process ID: 0

30
SubProtID: 0x0 Age: 19h29m12s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000002 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10084 OrigNextHop: ::
Label: NULL RealNextHop: ::
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: FF00::/8
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 19h29m12s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000001 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10014 OrigNextHop: ::
Label: NULL RealNextHop: ::
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: NULL0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

For command output, see Table 6.

display ipv6 routing-table ipv6-address


Use display ipv6 routing-table ipv6-address to display information about routes to an
IPv6 destination address.
Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display
information about routes to a range of IPv6 destination addresses.
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ]
ipv6-address [ prefix-length ] [ longer-match ] [ verbose ]

31
display ipv6 routing-table [ vpn-instance vpn-instance-name ]
ipv6-address1 to ipv6-address2 [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
ipv6-address: Specifies a destination IPv6 address.
prefix-length: Specifies the prefix length in the range of 0 to 128.
longer-match: Displays the route entry with the longest prefix.
ipv6-address1 to ipv6-address2: Specifies a destination IPv6 address range.
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
Executing the command with different parameters yields different output.
• display ipv6 routing-table ipv6-address
 The system ANDs the entered destination IPv6 address with the prefix length in each active
route entry.
 The system ANDs the destination IPv6 address in each active route entry with the prefix
length in the entry.
If the two operations yield the same result for an entry, the entry is displayed.
• display ipv6 routing-table ipv6-address prefix-length
 The system ANDs the entered destination IPv6 address with the entered prefix length.
 The system ANDs the destination IPv6 address in each active route entry with the entered
prefix length.
If the two operations yield the same result for an entry with a prefix length not greater than the
entered prefix length, the entry is displayed.
• display ipv6 routing-table ipv6-address longer-match
 The system ANDs the entered destination IPv6 address with the prefix length in each active
route entry.
 The system ANDs the destination IPv6 address in each active route entry with the prefix
length in the entry.
If the two operations yield the same result for multiple entries, the entry with the longest prefix
length is displayed.
• display ipv6 routing-table ipv6-address prefix-length longer-match
 The system ANDs the entered destination IPv6 address with the entered prefix length.
 The system ANDs the destination IPv6 address in each active route entry with the entered
prefix length.
If the two operations yield the same result for multiple entries with a prefix length not greater
than the entered prefix length, the entry with the longest prefix length is displayed.

32
• display ipv6 routing-table ipv6-address1 to ipv6-address2
The system displays route entries with destinations in the range of ipv6-address1/128 to
ipv6-address2/128.
Examples
# Display brief information about the routes to the destination IPv6 address 10::1 127.
<Sysname> display ipv6 routing-table 10::1 127

Summary count: 3

Destination: 10::/64 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

Destination: 10::/68 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

Destination: 10::/120 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

# Display brief information about the most specific route to the destination IPv6 address 10::1 and
prefix length 127.
<Sysname> display ipv6 routing-table 10::1 127 longer-match

Summary count : 1

Destination: 10::/120 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

# Display brief information about the routes to destination addresses in the range of 100:: to 300::.
<Sysname> display ipv6 routing-table 100:: to 300::

Summary count : 3

Destination: 100::/64 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

Destination: 200::/64 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

Destination: 300::/64 Protocol : Static


NextHop : :: Preference: 60
Interface : NULL0 Cost : 0

# Display detailed information about the routes to destination IPv6 addresses 1:2::3:4/128.
<Sysname> display ipv6 routing-table 1:2::3:4 128 verbose

33
Summary count : 1

Destination: 1:2::3:4/128
Protocol: O_INTRA
Process ID: 1
SubProtID: 0x1 Age: 00h01m14s
Cost: 1 Preference: 10
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x23000002 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10041 OrigNextHop: FE80::A1F:3FFF:FE45:206
Label: NULL RealNextHop: FE80::A1F:3FFF:FE45:206
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: Vlan-interface11
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

For command output, see Table 5.

display ipv6 routing-table prefix-list


Use display ipv6 routing-table prefix-list to display information about IPv6 routes
permitted by an IPv6 prefix list.
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] prefix-list
prefix-list-name [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63
characters.
verbose: Displays detailed information about all IPv6 routes permitted by the IPv6 prefix list. If you
do not specify this keyword, the command displays brief information about active IPv6 routes
permitted by the IPv6 prefix list.

34
Usage guidelines
If the specified IPv6 prefix list does not exist, the command displays information about all routes.
Examples
# Create an IPv6 prefix list named test to permit the prefix ::1/128.
<Sysname> system-view
[Sysname] ipv6 prefix-list test permit ::1 128

# Display brief information about the active IPv6 route permitted by the IPv6 prefix list.
[Sysname] display ipv6 routing-table prefix-list test

Summary count : 1

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

For command output, see Table 5.


# Display detailed information about all routes permitted by the IPv6 prefix list.
[Sysname] display ipv6 routing-table prefix-list test verbose

Summary count : 1

Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 08h57m19s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x20000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10004 OrigNextHop: ::1
Label: NULL RealNextHop: ::1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL BkSRLabel: NULL
Tunnel ID: Invalid Interface: InLoopBack0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

For command output, see Table 6.

display ipv6 routing-table protocol


Use display ipv6 routing-table protocol to display information about IPv6 routes
installed by a protocol.

35
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol
protocol [ inactive | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 information for the public network.
protocol: Specifies a routing protocol.
inactive: Displays information about inactive routes. If you do not specify this keyword, the
command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. If you do not specify this keyword, the
command displays brief routing information.
Examples
# Display brief information about IPv6 direct routes.
<Sysname> display ipv6 routing-table protocol direct

Summary count : 3

Direct Routing table status : <Active>


Summary count : 3

Destination: ::1/128 Protocol : Direct


NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0

Destination: FE80::/10 Protocol : Direct


NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0

Destination: FF00::/8 Protocol : Direct


NextHop : :: Preference: 0
Interface : NULL0 Cost : 0

Direct Routing table status : <Inactive>


Summary count : 0

# Display brief information about IPv6 static routes.


<Sysname> display ipv6 routing-table protocol static

Summary count : 3

36
Static Routing table status : <Active>
Summary count : 3

Destination: 2::2/128 Protocol : Static


NextHop : fe80::2 Preference: 60
Interface : Vlan12 Cost : 0

Destination: 2::2/128 Protocol : Static


NextHop : fe80::3 Preference: 60
Interface : Vlan12 Cost : 0

Destination: 3::3/128 Protocol : Static


NextHop : 2::2 Preference: 60
Interface : Vlan12 Cost : 0

Static Routing table status : <Inactive>


Summary count : 0

display ipv6 routing-table statistics


Use display ipv6 routing-table statistics to display IPv6 route statistics, including
numbers of total routes, routes installed and deleted by the protocol, and active routes.
Syntax
display ipv6 routing-table [ all-routes | all-vpn-instance | vpn-instance
vpn-instance-name ] statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Displays IPv6 route statistics for the public network and all VPN instances.
all-vpn-instance: Specifies 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.
Usage guidelines
If you do not specify any parameters, the command displays IPv6 route statistics for the public
network.
Examples
# Display IPv6 route statistics for the public network.
<Sysname> display ipv6 routing-table statistics

Total prefixes: 8 Active prefixes: 8

Proto Routes Active Added Deleted

37
DIRECT 5 5 5 0
STATIC 3 3 3 0
RIPng 0 0 0 0
OSPFv3 0 0 0 0
Total 8 8 8 0

# Display IPv6 route statistics for the public network and all VPN instances.
<Sysname> display ipv6 routing-table all-routes statistics

Total prefixes: 6 Active prefixes: 6

Proto Routes Active Added Deleted


DIRECT 3 3 3 0
STATIC 3 3 5 2
RIPng 0 0 0 0
OSPFv3 0 0 0 0
Total 6 6 8 2

# Display IPv6 route statistics for VPN instance vpn1.


<Sysname> display ipv6 routing-table vpn-instance vpn1 statistics

Total prefixes: 11 Active prefixes: 11

Proto Routes Active Added Deleted


DIRECT 8 8 8 0
STATIC 3 3 5 2
RIPng 0 0 0 0
OSPFv3 0 0 0 0
Total 11 11 13 2

# Display IPv6 route statistics for all VPN instances.


<Sysname> display ipv6 routing-table all-vpn-instance statistics

Total prefixes: 11 Active prefixes: 11

Proto Routes Active Added Deleted


DIRECT 8 8 8 0
STATIC 3 3 5 2
RIPng 0 0 0 0
OSPFv3 0 0 0 0
Total 11 11 13 2

Table 7 Command output

Field Description

Proto Protocol that installed the route.


Routes Number of routes installed by the protocol.
Active Number of active routes.
Number of routes added to the routing table after the router started up or the routing table
Added
was cleared most recently.

38
Field Description

Deleted Number of routes marked as deleted, which will be cleared after a period.
Total Total number of routes.

display ipv6 routing-table summary


Use display ipv6 routing-table summary to display brief IPv6 routing table information,
including maximum number of ECMP routes, maximum number of active routes, and number of
remaining active routes.
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] summary
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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 brief IPv6 routing table information for the public network.
Examples
# Display brief IPv6 routing table information for the public network.
<Sysname> display ipv6 routing-table summary

Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262126

# Display brief IPv6 routing table information for the MPLS L3VPN instance vpn1.
<Sysname> display ipv6 routing-table vpn-instance vpn1 summary

Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262134
Threshold value of active routes alert: 65100

For command output, see Table 4.

display rib graceful-restart


Use display rib graceful-restart to display RIB GR state information.
Syntax
display rib graceful-restart
Views
Any view

39
Predefined user roles
network-admin
network-operator
Examples
# Display RIB GR state information.
<Sysname> display rib graceful-restart
RIB GR state : Phase2-calculation end
RCOM GR state : Flush end
Protocol GR state:
No. Protocol Lifetime FD State Start/End
--------------------------------------------------
1 DIRECT 100 30 End No/No
2 STATIC 480 34 End No/No
3 OSPF 480 36 End No/No

Table 8 Command output

Field Description

RIB GR status:
• Start—GR starts.
• IGP end—All IGP protocols complete GR.
• VPN-triggering end—Optimal route selection triggered by VPN
routes completes.
• VPN-calculation end—Optimal VPN route selection completes.
• Routing protocol end—All routing protocols complete GR.
RIB GR state • NSR-calculation unfinished—NSR has not finished optimal route
selection.
• Triggering start—All triggered optimal route selection starts.
• Triggering end—All triggered optimal route selection completes.
• Phase1-calculation end—Optimal route selection phase 1
completes.
• All end—All protocols complete GR.
• Phase2-calculation end—Optimal route selection phase 2
completes.
RCOM GR status:
• Start—GR starts.
• VPN-calculation end—Optimal VPN route selection completes.
• VPN-notification end—VPN routes have been delivered to the route
management module.
• Routing protocol end—All routing protocols complete GR.
• NSR-calculation unfinished—NSR has not finished optimal route
selection.
RCOM GR state
• Phase1-calculation end—Optimal route selection phase 1
completes.
• Notification end—All routes have been delivered to the route
management module.
• Phase2-calculation end—Optimal route selection phase 2
completes.
• Flush start—Starts to flush routes to the FIB.
• Flush end—Completes flushing routes to the FIB.

No. Protocol number.

40
Field Description

Lifetime Lifetime (in seconds) of routes/labels in the RIB during GR.


FD Handle between the protocol and the RIB.
Protocol GR state:
• Init—Initialization state.
• Listen—Listening state.
State • Idle.
• Active.
• Start—GR starts.
• End—GR completes.

Message sending state:


Start/End • No—The message has not been sent.
• Yes—The message has been sent.

display rib nib


Use display rib nib to display next hop information in the RIB.
Syntax
display rib nib [ self-originated ] [ nib-id ] [ verbose ]
display rib nib protocol protocol [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
self-originated: Displays information about next hops of self-originated routes in the RIB.
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information in the RIB. If you do not specify this keyword, the
command displays brief next hop information in the RIB.
protocol protocol: Specifies a protocol by its name.
Examples
# Display brief next hop information in the RIB.
<Sysname> display rib nib
Total number of nexthop(s): 176

NibID: 0x10000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x111 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0

41
NibID: 0x10000001 Sequence: 1
Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x112 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0

NibID: 0x10000002 Sequence: 2


Type: 0x5 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x112 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0

NibID: 0x16000000 Sequence: 3


Type: 0x21 Flushed: No
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x0 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0
Instance: abc

...

Table 9 Command output

Field Description

NibID ID of the next hop.


Sequence Sequence number of the next hop.
Type Type of the next hop.
Flushed Indicates whether the route with the next hop has been flushed to the FIB.
UserKey0 Reserved data 1.
UserKey1 Reserved data 2.
Index of the VPN instance that the next hop belongs to. This field displays 0
VrfNthp
if the next hop is on the public network.
Nexthop Next hop address.
IFIndex Interface index.
LocalAddr Local interface address.
This field is not supported in the current software version.
Index of the topology that contains the next hop. This field displays 0 if the
TopoNthp next hop is on the IPv4 public network. This field displays Invalid if the next
hop is on an IPv6 network, because the router does not support multiple
IPv6 topologies.
ExtType Extension type of the next hop.
SubNibID ID of the sub-next hop.

42
Field Description

SubSeq Sequence number of the sub-next hop.


NthpCnt Number of sub-next hops.
Samed Number of the same sub-next hops.
Type of the sub-next hop. The value can be IP, which represents IP
NthpType
forwarding.

# Display detailed next hop information in the RIB.


<Sysname> display rib nib verbose
Total number of nexthop(s): 176

NibID: 0x10000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x111 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0
RefCnt: 6 FlushRefCnt: 2
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: [Link]
RelyDepth: 0 RealNexthop: [Link]
Interface: NULL0 LocalAddr: [Link]
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0

NibID: 0x10000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x112 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0
RefCnt: 11 FlushRefCnt: 5
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: [Link]
RelyDepth: 0 RealNexthop: [Link]
Interface: InLoop0 LocalAddr: [Link]
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0

NibID: 0x15000003 Sequence: 3


Type: 0x43 Flushed: Yes
UserKey0: 0x100010000 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]

43
IFIndex: 0x0 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0
RefCnt: 9 FlushRefCnt: 3
Flag: 0x84 Version: 1
Policy: tnl-policy1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: [Link]
RelyDepth: 1 RealNexthop: [Link]
Interface: Vlan11 LocalAddr: [Link]
TunnelCnt: 1 Vrf: default-vrf
TunnelID: 1025 Topology: base
Weight: 0

...

Table 10 Command output

Field Description

NibID ID of the next hop.


Sequence Sequence number of the next hop.
Type Type of the next hop.
Flushed Indicates whether the route with the next hop has been flushed to the FIB.
UserKey0 Reserved data 1.
UserKey1 Reserved data 2.
Index of the VPN instance that the next hop belongs to. This field displays 0
VrfNthp
if the next hop is on the public network.
Nexthop Next hop address.
IFIndex Interface index.
LocalAddr Local interface address.
This field is not supported in the current software version.
Index of the topology that contains the next hop. This field displays 0 if the
TopoNthp next hop is on the IPv4 public network. This field displays Invalid if the next
hop is on an IPv6 network, because the router does not support multiple
IPv6 topologies.

ExtType Extension type of the next hop.


SubNibID ID of the sub-next hop.
SubSeq Sequence number of the sub-next hop.
NthpCnt Number of sub-next hops.
Samed Number of the same sub-next hops.
Type of the sub-next hop.
NthpType
The type can be IP, which represents IP forwarding.
x nexthop (s) Number of next hops.
PrefixIndex Prefix index of the next hop for an ECMP route.
Vrf VPN instance name. For the public network, this field displays default-vrf.

44
Field Description

OrigNexthop Original next hop.


RealNexthop Real next hop.
Interface Output interface.
LocalAddr Local interface address.
RelyDepth Recursion depth.
This field is not supported in the current software version.
TunnelCnt
Number of tunnels after route recursion.
This field is not supported in the current software version.
TunnelID
ID of the tunnel after route recursion.
This field is not supported in the current software version.
Topology Topology name. The topology name for the IPv4 public network is base.
This field is blank for IPv6, because IPv6 does not support multiple
topologies.

Weight ECMP route weight. This field displays 0 for non-ECMP routes.
RefCnt Reference count of the next hop.
FlushRefCnt Reference count of the next hop that is flushed to the FIB.
Flag Flag of the next hop.
Version Version of the next hop.

display route-direct nib


Use display route-direct nib to display next hop information for direct routes.
Syntax
display route-direct nib [ nib-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information for direct routes. If you do not specify this
keyword, the command displays brief next hop information for direct routes.
Examples
# Display brief next hop information for direct routes.
<Sysname> display route-direct nib
Total number of nexthop(s): 116

NibID: 0x10000000 Sequence: 0


Type: 0x1 Flushed: Yes

45
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x111 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0

NibID: 0x10000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x112 LocalAddr: [Link]
TopoNthp: 0 ExtType: 0x0

...

Table 11 Command output

Field Description

NibID ID of the NIB.


Sequence Sequence number of the NIB.
Type Type of the NIB.
Flushed Indicates whether the route with the NIB has been flushed to the FIB.
UserKey0 Reserved data 1.
UserKey1 Reserved data 2.
Index of the VPN instance that the next hop belongs to. This field displays 0
VrfNthp
if the next hop is on the public network.

Nexthop Next hop address.


IFIndex Interface index.
LocalAddr Local interface IP address.
This field is not supported in the current software version.
Index of the topology that contains the next hop. This field displays 0 if the
TopoNthp next hop is on the IPv4 public network. This field displays Invalid if the next
hop is on an IPv6 network, because the router does not support multiple
IPv6 topologies.
ExtType Extension type of the next hop.

# Display detailed next hop information for direct routes.


<Sysname> display route-direct nib verbose
Total number of nexthop(s): 116

NibID: 0x10000000 Sequence: 0


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x111 LocalAddr: [Link]
TopoNthp: Invalid ExtType: 0x0
RefCnt: 2 FlushRefCnt: 0
Flag: 0x2 Version: 1

46
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: [Link]
RelyDepth: 0 RealNexthop: [Link]
Interface: NULL0 LocalAddr: [Link]
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0

NibID: 0x10000001 Sequence: 1


Type: 0x1 Flushed: Yes
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: [Link]
IFIndex: 0x112 LocalAddr: [Link]
TopoNthp: Invalid ExtType: 0x0
RefCnt: 5 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: [Link]
RelyDepth: 0 RealNexthop: [Link]
Interface: InLoop0 LocalAddr: [Link]
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0
...

Table 12 Command output

Field Description

NibID ID of the next hop.


Sequence Sequence number of the next hop.
Type Type of the next hop.
Flushed Indicates whether the route with the next hop has been flushed to the FIB.
UserKey0 Reserved data 1.
Index of the VPN instance to which the next hop belongs. This field displays
VrfNthp
0 if the next hop is on the public network.

UserKey1 Reserved data 2.


Nexthop Next hop address.
IFIndex Interface index.
LocalAddr Local interface address.
This field is not supported in the current software version.
Index of the topology that contains the next hop. This field displays 0 if the
TopoNthp next hop is on the IPv4 public network. This field displays Invalid if the next
hop is on an IPv6 network, because the router does not support multiple
IPv6 topologies.
ExtType Extension type of the next hop.
RefCnt Reference count of the next hop.

47
Field Description

FlushRefCnt Reference count of the next hop that is flushed to the FIB.
Flag Flag of the next hop.
Version Version of the next hop.
x nexthop(s) Number of next hops.
PrefixIndex Prefix index of the next hop for an ECMP route.
OrigNexthop Original next hop.
RelyDepth Recursion depth.
RealNexthop Real next hop.
Interface Output interface.
LocalAddr Local interface address.
This field is not supported in the current software version.
TunnelCnt
Number of tunnels after route recursion.
Vrf VPN instance name. For the public network, this field displays default-vrf.
This field is not supported in the current software version.
TunnelID
ID of the tunnel after route recursion.
This field is not supported in the current software version.
Topology Topology name. The topology name for the IPv4 public network is base.
This field is blank for IPv6, because IPv6 does not support multiple
topologies.
Weight ECMP route weight. This field displays 0 for non-ECMP routes.

fib lifetime
Use fib lifetime to set the maximum lifetime for IPv4 or IPv6 routes in the FIB.
Use undo fib lifetime to restore the default.
Syntax
fib lifetime seconds
undo fib lifetime
Default
The maximum lifetime for IPv4 or IPv6 routes in the FIB is 600 seconds.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Parameters
seconds: Specifies the maximum lifetime for routes in the FIB, in the range of 0 to 6000 seconds.
When this argument is set to 0, FIB entries immediately age out after a protocol or RIB process
switchover.

48
Usage guidelines
When a protocol or RIB process switchover occurs and GR or NSR is not configured, FIB entries age
out after the time specified in this command.
Examples
# Set the maximum lifetime for IPv4 routes in the FIB to 60 seconds.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] fib lifetime 60

inter-protocol fast-reroute
Use inter-protocol fast-reroute to enable IPv4 or IPv6 RIB inter-protocol FRR.
Use undo inter-protocol fast-reroute to disable IPv4 or IPv6 RIB inter-protocol FRR.
Syntax
inter-protocol fast-reroute [ vpn-instance vpn-instance-name ]
undo inter-protocol fast-reroute [ vpn-instance vpn-instance-name ]
Default
Inter-protocol FRR is not available.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Parameters
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
enables IPv4 or IPv6 RIB inter-protocol FRR for the public network.
Usage guidelines
This command allows a device to perform fast rerouting between routes of different protocols. A
backup next hop is automatically selected to reduce the service interruption time caused by
unreachable next hops. When the next hop of the primary link fails, the traffic is redirected to the
backup next hop.
This command uses the next hop of a route from a different protocol as the backup next hop for the
faulty route, which might cause loops.
Inter-protocol FRR cannot select a backup next hop from routes in the RIB that have the same next
hop, output interface, and destination as those of the faulty route.
Examples
# Enable IPv4 RIB inter-protocol FRR for the public network.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] inter-protocol fast-reroute

49
ip route fast-switchover enable
Use ip route fast-switchover enable to enable IPv4 route fast switchover.
Use undo ip route fast-switchover enable to disable IPv4 route fast switchover.
Syntax
ip route fast-switchover enable
undo ip route fast-switchover enable
Default
IPv4 route fast switchover is not available.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Use this command if a physical interface is the output interface for a large number of routes,
including ECMP routes and primary/secondary routes. When a link failure occurs on an interface, the
device typically performs the following operations before switching the traffic to a valid route:
1. Deletes all ARP entries for the link.
2. Instructs the FIB to delete the associated FIB entries.
This process is time-consuming and interruptive if a large number of routes traverse the interface.
Route fast switchover minimizes traffic interruption by instructing the FIB to delete the affected FIB
entries immediately without having to wait for the ARP entries to be deleted.
Examples
# Enable IPv4 route fast switchover.
<Sysname> system-view
[Sysname] ip route fast-switchover enable

ipv6 route fast-switchover enable


Use ipv6 route fast-switchover enable to enable IPv6 route fast switchover.
Use undo ipv6 route fast-switchover enable to disable IPv6 route fast switchover.
Syntax
ipv6 route fast-switchover enable
undo ipv6 route fast-switchover enable
Default
IPv6 route fast switchover is not available.
Views
System view
Predefined user roles
network-admin

50
Usage guidelines
Use this command if a physical interface is the output interface for a large number of routes,
including ECMP routes and primary/secondary routes. When a link failure occurs on an interface, the
device typically performs the following operations before switching the traffic to a valid route:
1. Deletes all ND entries for the link.
2. Instructs the FIB to delete the associated FIB entries.
This process is time-consuming and interruptive if a large number of routes traverse the interface.
Route fast switchover minimizes traffic interruption by instructing the FIB to delete the affected FIB
entries immediately without having to wait for the ND entries to be deleted.
Examples
# Enable IPv6 route fast switchover.
<Sysname> system-view
[Sysname] ipv6 route fast-switchover enable

non-stop-routing
Use non-stop-routing to enable RIB NSR.
Use undo non-stop-routing to disable RIB NSR.
Syntax
non-stop-routing
undo non-stop-routing
Default
RIB NSR is not available.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Examples
# Enable NSR for the RIB IPv4 address family.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] non-stop-routing

protocol lifetime
Use protocol lifetime to set the maximum lifetime for IPv4 or IPv6 routes and labels in the
RIB.
Use undo protocol lifetime to restore the default.
Syntax
protocol protocol lifetime seconds
undo protocol protocol lifetime

51
Default
The maximum lifetime for IPv4 or IPv6 routes and labels in the RIB is 480 seconds.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Parameters
protocol: Specifies a routing protocol.
seconds: Specifies the maximum lifetime for routes and labels in the RIB, in the range of 1 to 6000
seconds.
Usage guidelines
When GR is enabled, make sure the protocol can complete GR and install all route entries to the RIB
within the lifetime configured in this command.
Examples
# Set the maximum lifetime for RIP routes and labels in the RIB to 60 seconds.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] protocol rip lifetime 60

protocol nexthop recursive-lookup


Use protocol nexthop recursive-lookup to configure routing policy-based recursive
lookup.
Use undo protocol nexthop recursive-lookup to remove the configuration.
Syntax
protocol protocol nexthop recursive-lookup route-policy
route-policy-name
undo protocol protocol nexthop recursive-lookup route-policy
Default
Routing policy-based recursive lookup is not configured.
Views
RIB IPv4 address family view
Predefined user roles
network-admin
Parameters
protocol: Specifies a routing protocol, which can be static in RIB IPv4 address family view.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters.

52
Usage guidelines
Configure routing policy-based recursive lookup to control route recursion results. For example,
when a route changes, the routing protocol has to perform a route recursion if the next hop is
indirectly connected. The routing protocol might select an incorrect path, which can cause traffic
loss. To prevent this problem, you can use a routing policy to filter out incorrect routes. The routes
that pass the filtering of the routing policy will be used for route recursion.
The apply clauses in the specified routing policy cannot take effect.
Make sure a minimum of one related route can match the routing policy for correct traffic forwarding.
Examples
# Configure recursive lookup based on routing policy policy1 for static routes.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] protocol static nexthop recursive-lookup route-policy policy1

reset ip routing-table statistics protocol


Use reset ip routing-table statistics protocol to clear IPv4 route statistics.
Syntax
reset ip routing-table statistics protocol [ vpn-instance
vpn-instance-name ] { protocol | all }
reset ip routing-table [ all-routes | all-vpn-instance ] statistics
protocol { protocol | all }
Views
User view
Predefined user roles
network-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a
case-sensitive string of 1 to 31 characters.
all-routes: Clears route statistics for the public network and all VPN instances.
all-vpn-instance: Clears route statistics for all VPN instances.
protocol: Clears route statistics for a routing protocol.
all: Clears route statistics for all IPv4 routing protocols.
Usage guidelines
This command clears IPv4 route statistics for the public network if you do not specify the
all-routes, vpn-instance, or all-vpn-instance keyword.
This command clears only statistics of added and deleted routes for the specified routing protocols.
Examples
# Clear all IPv4 route statistics for the public network.
<Sysname> reset ip routing-table statistics protocol all

53
reset ipv6 routing-table statistics protocol
Use reset ipv6 routing-table statistics protocol to clear IPv6 route statistics.
Syntax
reset ipv6 routing-table statistics protocol [ vpn-instance
vpn-instance-name ] { protocol | all }
reset ipv6 routing-table [ all-routes | all-vpn-instance ] statistics
protocol { protocol | all }
Views
User view
Predefined user roles
network-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a
case-sensitive string of 1 to 31 characters.
all-routes: Clears route statistics for the public network and all VPN instances.
all-vpn-instance: Clears route statistics for all VPN instances.
protocol: Clears route statistics for an IPv6 routing protocol.
all: Clears route statistics for all IPv6 routing protocols.
Usage guidelines
This command clears IPv6 route statistics for the public network if you do not specify the
all-routes, vpn-instance, or all-vpn-instance keyword.
This command clears only statistics of added and deleted routes for the specified routing protocols.
Examples
# Clear all IPv6 route statistics for the public network.
<Sysname> reset ipv6 routing-table statistics protocol all

rib
Use rib to enter RIB view.
Use undo rib to remove all configurations in RIB view.
Syntax
rib
undo rib
Views
System view
Predefined user roles
network-admin
Examples
# Enter RIB view.
<Sysname> system-view

54
[Sysname] rib
[Sysname-rib]

routing-table limit
Use routing-table limit to set the maximum number of active IPv4/IPv6 routes supported by
the device.
Use undo routing-table limit to restore the default.
Syntax
routing-table limit number simply-alert
undo routing-table limit
Default
The maximum number of active IPv4/IPv6 routes is not set for the device.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of active IPv4/IPv6 routes supported by the device, in the
range of 1 to 4294967295.
simply-alert: Enables the device to still accept active routes but generate a log message when
the number of active IPv4/IPv6 routes exceeds the maximum number.
Usage guidelines
Configuration in RIB IPv4 address family view limits the number of active IPv4 routes for the public
network and all VPN instances.
Configuration in RIB IPv6 address family view limits the number of active IPv6 routes for the public
network and all VPN instances.
Examples
# In RIB IPv4 address family view, set the maximum number of active IPv4 routes to 1000 for the
public network and all VPN instances. The device still accepts new active routes but generates a
system log message when the maximum number of active routes is exceeded.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] routing-table limit 1000 simply-alert

55

You might also like