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 UserKey0: 0x0 VrfNthp: 0 UserKey1: 0x0 Nexthop: 0.0.0.0 IFIndex: 0x111 LocalAddr: 0.0.0.0 TopoNthp: 0 NibID: 0x10000001 Sequence: 1 Type: 0x1 Flushed: Yes UserKey0: 0x0 VrfNthp: 0 UserKey1: 0x0 Nexthop: 127.0.0.1 IFIndex: 0x112 LocalAddr: 127.0.0.1 TopoNthp: 0 ...
Table 14: 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. |
VrfNthp | Index of the VPN instance that the next hop belongs to. This field displays 0 if the next hop is on the IPv4 public network or an IPv6 network. |
Nexthop | Next hop address. |
IFIndex | Interface index. |
LocalAddr | Local interface IP address. |
TopoNthp | 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 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. |
# 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: 0.0.0.0 IFIndex: 0x111 LocalAddr: 0.0.0.0 RefCnt: 2 FlushRefCnt: 0 Flag: 0x2 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 0.0.0.0 RelyDepth: 0 RealNexthop: 0.0.0.0 Interface: NULL0 LocalAddr: 0.0.0.0 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: 127.0.0.1 IFIndex: 0x112 LocalAddr: 127.0.0.1 RefCnt: 5 FlushRefCnt: 0 Flag: 0x2 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 127.0.0.1 RelyDepth: 0 RealNexthop: 127.0.0.1 Interface: InLoop0 LocalAddr: 127.0.0.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A Topology: base Weight: 0 ...
Table 15: Command output
Field | Description |
---|---|
x nexthop(s) | Number of next hops. |
PrefixIndex | Prefix index of the next hop for an ECMP route. |
Vrf | VPN instance name. For the IPv4 public network or an IPv6 network, this field displays default-vrf. |
OrigNexthop | Original next hop. |
RealNexthop | Real next hop. |
Interface | Output interface. |
localAddr | Local interface address. |
RelyDepth | Recursion depth. |
TunnelCnt | Number of tunnels after route recursion. |
TunnelID | ID of the tunnel after route recursion. |
Topology | This field is not supported in the current software version. 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. |