Basic IP forwarding commands
display fib
Use display fib to display FIB entries.
Syntax
display fib [ topology topo-name | vpn-instance vpn-instance-name ] [ ip-address [ mask |
mask-length ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. To
specify a public topology, use base as the topology name. To display FIB entries for the public network,
do not specify this option.
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31
characters. To display the FIB entries for the public network, do not specify any VPN.
ip-address: Displays the FIB entry that matches the specified destination IP address.
mask: Specifies the mask for the IP address.
mask-length: Specifies the mask length for the IP address, the number of consecutive ones in the mask.
The value range is 0 to 32.
Usage guidelines
Each FIB entry contains a destination IP address/mask, next hop, and output interface.
If you specify an IP address without a mask or mask length, this command displays the longest matching
FIB entry.
If you specify an IP address and a mask or mask length, this command displays the exactly matching FIB
entry.
Examples
# Display FIB entries for the topology mt.
<Sysname> display fib topology mt
Destination count: 8 FIB entry count: 8
Flag:
U:Useable
R:Relay
G:Gateway
H:Host
F:FRR
B:Blackhole
D:Dynamic
238
S:Static