< Home

display fib longer

Function

The display fib longer command displays different matched FIB entries depending on which parameter is selected.

The display fib [ slot-id ] destination-address command displays all subnets if the destination address in the natural mask range has the corresponding FIB entry. Otherwise, the FIB entries that longest matching the destination address is displayed.

The display fib [ slot-id ] destination-address destination-mask command displays the FIB entry fully matching the destination address and the mask.

The display fib [ slot-id ] destination-address longer command displays all FIB entries matching the IP destination addresses in the natural mask.

The display fib [ slot-id ] destination-address dest-mask longer command displays all FIB entries matching the IP destination addresses in the specified mask.

The display fib [ slot-id ] destination-address1 dest-mask1 destination-address2 dest-mask2 command displays the FIB entries of the destination IP addresses in the range of desination-address1 desination-mask1 and desitination-address2 destination-mask2.

If slot-id is specified, display the FIB entries of the corresponding board.

Format

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 [ destination-mask1 ] [ longer ] [ verbose ]

display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 destination-mask1 destination-address2 destination-mask2 [ verbose ]

Parameters

Parameter Description Value
slot-id Specifies a slot number. Its ranges vary with different device hardware. -
vpn-instance vpn-instance-name Specifies the VPN instance name. The value is a case-sensitive string with 1 to 31 characters.
destination-address1 Specifies the IP destination address1. The value is in dotted decimal format.
destination-mask1 Specifies the corresponding subnet mask1. The value is in dotted decimal format or is an integer.
destination-address2 Specifies the IP destination address2. The value is in dotted decimal format.
destination-mask2 Specifies the corresponding subnet mask2. The value is in dotted decimal format or is an integer.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the matched FIB entry or the longest matched FIB entry of the destination address 10.3.0.0 in the natural mask range.

<sysname> display fib 10.3.0.0
Fib Flags: B - blackhole, D - dynamic, G - gateway, H - host, S - static        
           U - up                                                 
------------------------------------------------------------------------------  
  Route Entry Count: 1  
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
10.1.0.0/8       10.2.1.1  U     t[0]       GE0/0/1     0x0

# Display the FIB entries with the destination addresses in the range of 10.4.0.0/16 to 10.4.0.6/16.

<sysname> display fib 10.4.0.0 255.255.0.0 10.4.0.6 255.255.0.0
Fib Flags: B - blackhole, D - dynamic, G - gateway, H - host, S - static        
           U - up                                                
------------------------------------------------------------------------------  
  Route Entry Count: 1  
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
10.4.0.1/8     10.2.1.1  U     t[0]       GE0/0/1     0x0
Table 1 Description of the display fib longer command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop address.

Flag

Current flag:
  • G: the next hop is a gateway.

  • H: the next hop is a host.

  • U: the route status is Up.

  • S: static routes.

  • D: dynamic routes.

  • B: black hole routes, which means that the next hop is a null interface.

TimeStamp

Time (in seconds) elapsed since the entry was generated.

Interface

Name of an outbound interface to the destination address.

TunnelID

Index of a tunnel that forwards packets. It is used to forward packets between an upstream link and a downstream link. If the value is not 0, packets matching the entry are forwarded along a tunnel. If the value is 0, packets are not forwarded through the tunnel.

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