display static-route routing-table [ vpn-instance vpn-instance-name | topology topology-name ] [ destination-address [ mask-length ] ]
display static-route ipv6 routing-table [ vpn-instance vpn-instance-name | topology topology-name ] [ ipv6-destination-address [ prefix-length ] ]
display static-route multicast routing-table [ vpn-instance vpn-instance-name ] [ destination-address [ mask-length ] ]
display static-route statistics
Parameter | Description | Value |
---|---|---|
destination-address |
Specifies a destination IP address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length of a destination IP address. |
The value is an integer ranging from 0 to 32. |
multicast |
Display multicast static routes. |
- |
routing-table |
Displays the information of static routes. |
- |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
topology topology-name |
Specifies the name of a topology. |
The value is a string of 1 to 31 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive) and can contain numbers, hyphens (-), or underlines (_). When double quotation marks are used around the string, spaces are allowed in the string. |
ipv6 |
Display IPv6 unicast static routes. |
- |
ipv6-destination-address |
Specifies a destination IPv6 address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the mask length of a destination IPv6 address. |
The value ranges from 0 to 128. |
statistics |
Display the maximum number of static routes that can be configured and the number of existing static routes. |
- |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display static-route multicast routing-table 10.1.1.1 24
Multicast Routing Table
Routes : 1
Mroute 1.1.1.1/32
Interface = NULL0 RPF Neighbor = 3.3.3.3
Preference = 1
Running Configuration = ip rpf-route-static 1.1.1.1 32 3.3.3.3
<HUAWEI> display static-route ipv6 routing-table vpn-instance vrf1 4000::1 64
Summary Count : 1
Destination : 4000::/64
Preference : 60 Tag : 0
Interface : NULL0 InterfaceState : UP
OriginNextHop : :: BfdDetect : Disable
BfdSession :
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : -- Label : NULL
State : Active Primary
IndirectID : 0x10 RelayTunnel : Disable
IIDFlags : BlackHole RelayDepth : 0
LocalAddress : ::
RemoteIp : ::
<HUAWEI> display static-route statistics
--------------------------------------------------------------------------------
Max IPv4 route number : 100000
Max IPv6 route number : 100000
Current configured IPv4 route number : 1
Current configured IPv6 route number : 0
<HUAWEI> display static-route ipv6 routing-table Summary Destinations : 3 Routes : 3 Destination : 1000::/64 Preference : 60 Tag : 0 Interface : NULL0 InterfaceState : UP OriginNextHop : :: BfdDetect : Disable BfdSession : BfdType : -- NQAAdminName : -- NQATestName : -- NQADetect : -- Label : NULL State : Active Primary IndirectID : 0xE RelayTunnel : Disable IIDFlags : BlackHole RelayDepth : 0 LocalAddress : :: RemoteIp : :: Destination : 2000::/64 Preference : 60 Tag : 0 Interface : -- InterfaceState : -- OriginNextHop : 100::2 BfdDetect : Disable BfdSession : BfdType : -- NQAAdminName : -- NQATestName : -- NQADetect : -- Label : NULL State : Active Primary IndirectID : 0xF RelayTunnel : Disable IIDFlags : RelayDepth : 1 DestVrf : public DestTopo : base RelayNextHop : 100::2 RelayInterface : GigabitEthernet0/1/0 TunnelID : -- Destination : 3000::/64 Preference : 60 Tag : 0 Interface : GigabitEthernet0/1/0 InterfaceState : UP OriginNextHop : FE80::1 BfdDetect : Disable BfdSession : BfdType : -- NQAAdminName : -- NQATestName : -- NQADetect : -- Label : NULL State : Active Primary IndirectID : 0xD RelayTunnel : Disable IIDFlags : RelayDepth : 0 LocalAddress : FE80::3A67:CFF:FE10:1100 RemoteIp : ::
<HUAWEI> display static-route ip routing-table
Summary Destinations : 1 Routes : 1
Destination : 1.1.1.1/32
Preference : 60 Tag : 0
Interface : NULL0 InterfaceState : UP
OriginNextHop : 0.0.0.0 BfdDetect : Disable
BfdSession : 0
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : Disable Label : NULL
EFMDetect : Disable EfmInterface : --
State : Active Primary TunnelPolicy : 0
Cost : 0
IndirectID : 0x10000CD RelayType : NO
IIDFlags : BlackHole RelayDepth : 0
LocalAddress : 0.0.0.0
RemoteIp : 0.0.0.0
SourceVrfName : --
UserInfo : 0
DownReason : 0x0
<HUAWEI> display static-route multicast routing-table vpn-instance vrf1
Multicast Routing Table
Routes : 1
Mroute 1.1.1.1/32
Interface = NULL0 RPF Neighbor = 4.4.4.4
Preference = 1
Running Configuration = ip rpf-route-static vpn-instance vrf1 1.1.1.1 32 4.4.4.4
<HUAWEI> display static-route multicast routing-table
Multicast Routing Table
Routes : 1
Mroute 1.1.1.1/32
Interface = NULL0 RPF Neighbor = 2.2.2.2
Preference = 1
Running Configuration = ip rpf-route-static 1.1.1.1 32 2.2.2.2
<HUAWEI> display static-route ipv6 routing-table vpn-instance vrf1
Summary Destinations : 2 Routes : 2
Destination : 4000::/64
Preference : 60 Tag : 0
Interface : NULL0 InterfaceState : UP
OriginNextHop : :: BfdDetect : Disable
BfdSession :
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : -- Label : NULL
State : Active Primary
IndirectID : 0x10 RelayTunnel : Disable
IIDFlags : BlackHole RelayDepth : 0
LocalAddress : ::
RemoteIp : ::
Destination : 5000::/64
Preference : 60 Tag : 0
Interface : -- InterfaceState : --
OriginNextHop : 100::2 BfdDetect : Disable
BfdSession :
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : -- Label : NULL
State : Inactive Invalid
IndirectID : 0x11 RelayTunnel : Disable
IIDFlags : RelayDepth : 0
DestVrf : vrf1
<HUAWEI> display static-route ipv6 routing-table topology top1 6000::1 100
Summary Count : 2
Destination : 6000::/100
Preference : 60 Tag : 0
Interface : NULL0 InterfaceState : UP
OriginNextHop : :: BfdDetect : Disable
BfdSession :
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : -- Label : NULL
State : Active Primary
IndirectID : 0x12 RelayTunnel : Disable
IIDFlags : BlackHole RelayDepth : 0
LocalAddress : ::
RemoteIp : ::
Destination : 6000::/100
Preference : 60 Tag : 0
Interface : -- InterfaceState : --
OriginNextHop : 100::2 BfdDetect : Disable
BfdSession :
BfdType : --
NQAAdminName : -- NQATestName : --
NQADetect : -- Label : NULL
State : Inactive Invalid
IndirectID : 0x13 RelayTunnel : Disable
IIDFlags : RelayDepth : 0
DestVrf : public
Item | Description |
---|---|
Routes | Total number of routes. |
Interface | Outbound interface configured for a route. If no outbound interface is configured for a route, this item is displayed as "-". |
RPF Neighbor | The address of RPF neighbor. |
Preference | Route priority. |
Summary Destinations | Total number of destination network prefixes or host prefixes. |
Summary Count | Number of summary routes. |
Destination | Destination address/mask length. |
Tag | Administrative tag of a route. |
InterfaceState | Interface status. If no interface is configured, this item is displayed as "-". |
OriginNextHop | Next hop configured for a route. If no next hop is configured for a route, this item is displayed as "::". |
BfdDetect | BFD detection result:
|
BfdSession | Name of the BFD session. |
BfdType | Type of the BFD session:
|
NQAAdminName | Administrator of an NQA test instance. |
NQATestName | Name of an NQA test instance. |
NQADetect | Result of the NQA detection:
|
Label | Label. |
State | Route selection result:
|
IndirectID | Keyword of indirect next hop. |
RelayTunnel | Whether routes can recurse to tunnels. |
IIDFlags | Keyword flags of indirect next hop, including BlackHole and GateWay. |
RelayDepth | Recursion depth. |
LocalAddress | IPv6 address of the local interface. If no IPv6 address is configured for the local interface, this item is displayed as "::". This item is displayed only when the outbound interface of the corresponding route is configured. |
RemoteIp | IPv6 address of the remote P2P interface. If no IPv6 address is configured for the remote P2P interface, this item is displayed as "::". This item is displayed only when the outbound interface of the corresponding route is configured. |
Max IPv4 route number | Maximum number of static IPv4 routes that can be configured. |
Max IPv6 route number | Maximum number of static IPv6 routes that can be configured. |
Current configured IPv4 route number | Number of existing static IPv4 routes. |
Current configured IPv6 route number | Number of existing static IPv6 routes. |
DestVrf | Name of the VPN instance to which the next hop address belongs. This item is displayed only when the next hop of the corresponding static route is configured but the outbound interface of the route is not configured. |
DestTopo | Name of the destination topology to which the next hop address belongs. This item is displayed only when the next hop of the corresponding static route is configured but the outbound interface of the route is not configured. |
RelayNextHop | Recursive next hop address. If the corresponding static route reaches the next hop through a tunnel, this item is displayed as "::". This item is displayed only when the next hop of the route is configured but the outbound interface of the route is not configured. |
RelayInterface | Name of a recursive outbound interface. If the corresponding static route reaches the next hop through a tunnel, this item is displayed as a tunnel name. This item is displayed only when the next hop of the route is configured but the outbound interface of the route is not configured. |
TunnelID | ID of a tunnel. |
EFMDetect | Possible values are as follows:
|
EfmInterface | Interface to which EFM is bound. |
TunnelPolicy | Indicates that the ID of the tunnel policy used by the routes. The value of routes that are not iterated to tunnels is 0. |
Cost | Route cost. |
RelayType | Indicates the actual iteration type:
|
SourceVrfName | VPN instance name. |
UserInfo | Service information. |
DownReason | Reason why the static route is inactive:
|