FIB Query and Maintenance
Context
Unless otherwise stated, the FIB in this document refers to unicast FIB.
A device selects routes according to the routing table and forwards packets according to the FIB. If the FIB is overloaded, new active routes cannot be delivered to the FIB, affecting packet forwarding.
Procedure
- Check FIB entries.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] [ verbose ] command to check IPv4 FIB entries.
- Run the display fib [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] command to check IPv4 FIB entries that match a specified ACL rule.
- Run the display fib [ vpn-instance vpn-instance-name ] ip-prefix prefix-name [ verbose ] command to check IPv4 FIB entries that match a specified IP prefix list.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 [ verbose ] command to check IPv4 FIB entries that match a specified destination IP address.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 destination-mask1 [ verbose ] command to check IPv4 FIB entries that exactly match a specified destination IP address and mask.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 longer [ verbose ] command to check all IPv4 FIB entries that match destination IP addresses in the natural mask range.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 destination-mask1 longer [ verbose ] command to check all IPv4 FIB entries that match destination IP addresses in a specified mask range.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] destination-address1 destination-mask1 destination-address2 destination-mask2 [ verbose ] command to check IPv4 FIB entries that match destination IP addresses in the range of destination-address1 destination-mask1 and destination-address2 destination-mask2.
- Run the display fib [ vpn-instance vpn-instance-name ] next-hop ip-address command to check IPv4 FIB entries that match a specified next-hop IP address.
- Run the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] statistics command to check the total number of IPv4 FIB entries.
- Run the display fib statistics all command to check IPv4 FIB entry statistics.
- Run the display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] [ verbose ] command to check IPv6 FIB entries.
- Run the display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] ipv6-address [ verbose ] command to check IPv6 FIB entries that match a specified destination IPv6 address.
- Run the display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] ipv6-address prefix-length [ verbose ] command to check IPv6 FIB entries that exactly match a specified destination IPv6 address and mask.
- Run the display ipv6 fib [ slot-id ] [ vpn-instance vpn-instance-name ] statistics command to check the total number of IPv6 FIB entries.
- Run the display ipv6 fib [ slot-id ] statistics all command to check IPv6 FIB entry statistics.
- Maintain the FIB.
- Configure periodic refresh of FIB entries.
Run system-view
The system view is displayed.
Run undo fib regularly-refresh disable
Periodic refresh of FIB entries is enabled.
By default, periodic refresh of FIB entries is disabled.
You can run either of the following commands according to the actual requirements.
Run fib regularly-refresh { interval interval [ entry-number entry-number ] | entry-number entry-number }
The interval for refreshing FIB entries and the number of FIB entries refreshed at an interval are configured.
By default, the interval for refreshing FIB entries is 1 second and the number of FIB entries refreshed at an interval is 100.
Run fib regularly-refresh start-time start-time
The time at which FIB entries are refreshed is configured.
By default, FIB entries are refreshed at 01:00 a.m.
- Configure periodic refresh of IPv6 FIB entries.
Run system-view
The system view is displayed.
Run undo ipv6 fib regularly-refresh disable
Periodic refresh of IPv6 FIB entries is enabled.
You can run either of the following commands according to the actual requirements.
Run ipv6 fib regularly-refresh interval interval
The interval for refreshing IPv6 FIB entries is configured.
By default, the interval for refreshing IPv6 FIB entries is 1 second.
Run ipv6 fib regularly-refresh entry-number entry-number
The number of IPv6 FIB entries refreshed at an interval is configured.
By default, the number of IPv6 FIB entries refreshed at an interval is 100.
Run ipv6 fib regularly-refresh start-time start-time
The time at which IPv6 FIB entries are refreshed is configured.
By default, FIB entries are refreshed at 00:00 a.m.
- Configure periodic refresh of FIB entries.