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 desination-address1 desination-mask1 to desitination-address2 destination-mask2.
If slot-id is specified, FIB entries on the specified LPU are displayed.
Format
display fib [ slot-id ] destination-address1 [ destination-mask1 ] [ longer ] [ verbose ]
display fib [ slot-id ] 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. |
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. |
- |
Example
# Display FIB entries that match destination address 172.16.0.0 in the natural mask range or based on the longest match principle.
<AC6605> 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 172.16.0.0/16 to 172.16.0.6/16.
<AC6605> 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
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.
|
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 MPLS tunnel. If the value is 0, packets matching the entry are not forwarded through the MPLS tunnel. |