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. |
verbose |
Displays detailed information about the FIB table. |
- |
The display fib command displays information about the FIB table. Each row represents a route.
If there are lots of routes, using wildcard (|, begin, exclude, include, regular-expression) to display information or details lasts a long time. You can press Ctrl+C to terminate information display.
# Display brief information about the FIB table.
<HUAWEI> display fib Route Flags: G - Gateway Route, H - Host Route, U - Up Route S - Static Route, D - Dynamic Route, B - Black Hole Route L - Vlink Route -------------------------------------------------------------------------------- FIB Table: Total number of Routes : 5 Destination/Mask Nexthop Flag TimeStamp Interface TunnelID 192.168.150.111/32 127.0.0.1 HU t[117] InLoop0 0x0 127.0.0.1/32 127.0.0.1 HU t[54] InLoop0 0x0 127.0.0.0/8 127.0.0.1 U t[54] InLoop0 0x0 192.168.150.0/24 192.168.150.111 U t[117] MEth0/0/1 0x0 0.0.0.0/0 192.168.150.1 GSU t[117] MEth0/0/1 0x0
# Display information starting from the line that contains 169.254.0.0
<HUAWEI> display fib | begin 10.254.0.0
Destination/Mask Nexthop Flag TimeStamp Interface TunnelID
10.254.0.0/16 10.2.1.1 U t[0] Vlanif10 0x0
10.12.0.0/16 10.2.1.1 U t[0] Vlanif10 0x0
127.0.0.0/8 127.0.0.1 U t[0] InLoop0 0x0
# Display all lines that contain Vlanif10.
<HUAWEI> display fib | include Vlanif10
Destination/Mask Nexthop Flag TimeStamp Interface TunnelID
10.254.0.0/16 10.2.1.1 U t[0] Vlanif10 0x0
10.12.0.0/16 10.2.1.1 U t[0] Vlanif10 0x0
# Display all lines that do not include 192.168.150.0.
<HUAWEI> display fib | exclude 192.168.150.0
Destination/Mask Nexthop Flag TimeStamp Interface TunnelID
192.168.150.111/32 127.0.0.1 HU t[117] InLoop0 0x0
127.0.0.1/32 127.0.0.1 HU t[54] InLoop0 0x0
127.0.0.0/8 127.0.0.1 U t[54] InLoop0 0x0
0.0.0.0/0 192.168.150.1 GSU t[117] MEth0/0/1 0x0
Item |
Description |
---|---|
Route Flags |
Flag of a route. |
Destination/Mask |
Destination address or mask length. |
Nexthop |
Next hop. |
Flag |
Current flag, which is the combination of G, H, U, S, D, B and T.
|
TimeStamp |
Timestamp, which indicates the time equal to FIB entry generation time minus system startup time. |
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 0x0, packets matching the entry are forwarded through the MPLS tunnel. If the value is 0x0, packets matching the entry are not forwarded through the MPLS tunnel. |
# Display detailed information about the FIB table.
<HUAWEI> display fib verbose
Route Flags: G - Gateway Route, H - Host Route, U - Up Route
S - Static Route, D - Dynamic Route, B - Black Hole Route
L - Vlink Route
------------------------------------------------------------------------------
FIB Table:
Total number of Routes : 3
Destination: 127.0.0.1 Mask : 255.255.255.255
Nexthop : 127.0.0.1 OutIf : InLoopBack0
LocalAddr : 127.0.0.1 LocalMask: 0.0.0.0
Flags : HU Age : 354280sec
ATIndex : 0 Slot : 0
LspFwdFlag : 0 LspToken : 0x0
InLabel : NULL OriginAs : 0
BGPNextHop : 0.0.0.0 PeerAs : 0
QosInfo : 0x0 OriginQos: 0x0
NexthopBak : 0.0.0.0 OutIfBak : [No Intf]
LspTokenBak: 0x0 InLabelBak : NULL
LspToken_ForInLabelBak : 0x0
EntryRefCount : 0
VlanId : 0x0
BgpKey : 0
BgpKeyBak : 0
LspType : 0 Label_ForLspTokenBak : 0
MplsMtu : 0 Gateway_ForLspTokenBak : 0.0.0.0
NextToken : 0x0 IfIndex_ForLspTokenBak : 0
Label_NextToken : 0 Label : 0
LspBfdState : 0
Destination: 127.255.255.255 Mask : 255.255.255.255
Nexthop : 127.0.0.1 OutIf : InLoopBack0
LocalAddr : 127.0.0.1 LocalMask: 0.0.0.0
Flags : HU Age : 354280sec
ATIndex : 0 Slot : 0
LspFwdFlag : 0 LspToken : 0x0
InLabel : NULL OriginAs : 0
BGPNextHop : 0.0.0.0 PeerAs : 0
QosInfo : 0x0 OriginQos: 0x0
NexthopBak : 0.0.0.0 OutIfBak : [No Intf]
LspTokenBak: 0x0 InLabelBak : NULL
LspToken_ForInLabelBak : 0x0
EntryRefCount : 0
VlanId : 0x0
BgpKey : 0
BgpKeyBak : 0
LspType : 0 Label_ForLspTokenBak : 0
MplsMtu : 0 Gateway_ForLspTokenBak : 0.0.0.0
NextToken : 0x0 IfIndex_ForLspTokenBak : 0
Label_NextToken : 0 Label : 0
LspBfdState : 0
Destination: 255.255.255.255 Mask : 255.255.255.255
Nexthop : 127.0.0.1 OutIf : InLoopBack0
LocalAddr : 127.0.0.1 LocalMask: 0.0.0.0
Flags : HU Age : 354280sec
ATIndex : 0 Slot : 0
LspFwdFlag : 0 LspToken : 0x0
InLabel : NULL OriginAs : 0
BGPNextHop : 0.0.0.0 PeerAs : 0
QosInfo : 0x0 OriginQos: 0x0
NexthopBak : 0.0.0.0 OutIfBak : [No Intf]
LspTokenBak: 0x0 InLabelBak : NULL
LspToken_ForInLabelBak : 0x0
EntryRefCount : 0
VlanId : 0x0
BgpKey : 0
BgpKeyBak : 0
LspType : 0 Label_ForLspTokenBak : 0
MplsMtu : 0 Gateway_ForLspTokenBak : 0.0.0.0
NextToken : 0x0 IfIndex_ForLspTokenBak : 0
Label_NextToken : 0 Label : 0
LspBfdState : 0
Item |
Description |
---|---|
Destination |
Destination address. |
Mask |
Mask. |
Nexthop |
Next hop. |
OutIf |
Outbound interface. |
LocalAddr |
Local IP address. |
LocalMask |
Mask of the local IP address. |
Flags |
Current flag, which is the combination of G, H, U, S, D, and B.
|
Age |
Lifetime of a route, in seconds. |
ATIndex |
Index of the virtual link connecting the local end and the gateway. |
Slot |
Slot ID of the outbound interface. |
LspFwdFlag |
Forwarding flag of an LSP. |
LspToken |
Forwarding ID of an LSP. |
InLabel |
Inner tag of a VPN LSP. |
OriginAs |
Original AS number. |
BGPNextHop |
Address of the BGP next hop. |
PeerAs |
Neighbor AS number. |
QosInfo |
QoS information. |
OriginQos |
Original QoS information. |
NexthopBak |
Backup of the next hop. |
OutIfBak |
Backup of the outbound interface. |
VlanId |
VLAN ID. |
BgpKey |
Key value of the BGP route. |
BgpKeyBak |
Backup key value of the BGP route. |