RHEL8 throws "Error: ipv4: FIB table does not exist. Dump terminated" after executing ip route show table default

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 8
  • iproute-5.3.0

Issue

  • Upon running ip route show table <value> where value is between 0-253 or default, the following error appears:
[root@rhel8 ~]# ip route list table 1
Error: ipv4: FIB table does not exist.
Dump terminated
  • This did not happen with iproute-4.11.0 in RHEL 7.

Resolution

This is the expected and correct result when listing a routing table which doesn't exist.

The fact that RHEL 7 didn't error in this situation was a bug which has since been repaired.

If you have scripts which error due to the new error return in RHEL 8, make sure the script catches and handles the potential error correctly.

Root Cause

This was discussed with development via Red Hat Private Bug 1945474 - "Error: ipv4: FIB table does not exist. Dump terminated".

There is an upstream patch Content from git.kernel.org is not included.ip route: ignore ENOENT during save if RT_TABLE_MAIN is being dumped which ignores the error when the main table is being listed. The idea being that listing routes in a network namespace before the loopback interface is up will error, because the routing table is allocated when the loopback goes up.

That is not the usage here. The usage here is listing a routing table which doesn't exist, which is an error.

Diagnostic Steps

  • The issue can be reproduced by running ip route show table <value> where value is between 0-253 or default.
[root@rhel8 ~]# rpm -qa | grep iproute
iproute-5.3.0-5.el8.x86_64
[root@rhel8 ~]# ip route show table 1
Error: ipv4: FIB table does not exist.
Dump terminated
[root@rhel8 ~]# ip route show table default
Error: ipv4: FIB table does not exist.
Dump terminated
[root@rhel8 ~]# ip route show table 10
Error: ipv4: FIB table does not exist.
Dump terminated
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.