< Home

display fib longer

Function

The display fib longer command displays FIB entries that match a specified parameter.

The display fib [ slot-id ] destination-address command displays FIB entries that match a specified destination IP address. If the specified destination IP address matches an FIB entry in the natural mask range, all the subnets are displayed. Otherwise, FIB entries are displayed based on the longest matching principle.

The display fib [ slot-id ] destination-address destination-mask command displays FIB entries that accurately match the destination address and mask.

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

The display fib [ slot-id ] destination-address destination-mask longer command displays all FIB entries that match destination IP addresses in a specified mask range.

The display fib [ slot-id ] destination-address1 destination-mask1 destination-address2 destination-mask2 command displays FIB entries that match destination IP addresses in the range of destination-address1 destination-mask1 to destination-address2 destination-mask2.

If slot-id is specified, FIB entries on the device are displayed.

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

Displays information about the FIB table with a specified slot ID.

The value is an integer and the value range depends on the device configuration.

vpn-instance vpn-instance-name

Displays information about the FIB table of a specified VPN instance.

The value must be an existing VPN instance name.

destination-address1

Indicates destination IP address 1.

The value is in dotted decimal notation.

destination-mask1

Indicates subnet mask 1.

The value is in dotted decimal notation or an integer that ranges from 0 to 32.

destination-address2

Indicates destination IP address 2.

The value is in dotted decimal notation.

destination-mask2

Indicates subnet mask 2.

The value is in dotted decimal notation or an integer that ranges from 0 to 32.

longer

Displays FIB entries matching a specified network segment or mask.

-

verbose

Displays detailed information about the FIB table.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display fib longer command to check FIB entries that match a specified condition.

Example

# Display FIB entries that match destination address 172.16.0.0 in the natural mask range or based on the longest match principle.

<HUAWEI> display fib 172.16.0.0
  Route Entry Count: 1 
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
172.16.0.0/16     10.1.1.1 U     t[0]       Vlanif10     0x0

# Display the FIB entries with the destination addresses in the range of 72.16.0.0/16 to 172.16.0.6/16.

<HUAWEI> display fib 172.16.0.0 255.255.0.0 172.16.0.6 255.255.0.0
  Route Entry Count: 1 
Destination/Mask  Nexthop  Flag  TimeStamp  Interface  TunnelID
172.16.0.1/8      10.1.1.1  U     t[0]       Vlanif10     0x0
Table 1 Description of the display fib longer command output

Item

Description

Destination/Mask

Destination address or mask length.

Nexthop

Next hop.

Flag

Current flag, which is the combination of G, H, U, S, D, and B.
  • G (gateway route): indicates that the next hop is a gateway.

  • H (host route): indicates that the route is a host route.

  • U (available route): indicates that the route status is Up.

  • S: indicates a static route.

  • D: indicates a dynamic route.

  • B (blackhole route): indicates that the next hop is a null interface.

TimeStamp

Timestamp, which indicates the lifetime of an entry, in seconds.

Interface

Outbound interface to the destination address.

TunnelID

Index of a forwarding entry. It is used in packet forwarding between the upstream and downstream boards. If the value is not 0, packets matching the entry are forwarded through the tunnel. If the value is 0, packets matching the entry are not forwarded through the tunnel.

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