ifup[260]: 错误: ipv4: FIB 表不存在

ifup[260]: 错误: ipv4: FIB 表不存在

cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

我安装了 ifupdown 并删除了 netplan.io 但命令 systemctl start networking 失败 systemctl status networking

x networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
    Drop-In: /run/systemd/system/service.d
             `-zzz-lxc-service.conf
     Active: failed (Result: exit-code) since Fri 2022-09-09 15:09:22 UTC; 43s ago
       Docs: man:interfaces(5)
   Main PID: 164 (code=exited, status=1/FAILURE)
        CPU: 195ms

Sep 09 15:09:21 test2 ifup[260]: Error: ipv4: FIB table does not exist.
Sep 09 15:09:21 test2 ifup[260]: Dump terminated
Sep 09 15:09:21 test2 ifup[164]: ifup: failed to bring up eth1
Sep 09 15:09:21 test2 ifup[269]: Setting up eth2
Sep 09 15:09:21 test2 ifup[277]: Error: ipv4: FIB table does not exist.
Sep 09 15:09:21 test2 ifup[277]: Dump terminated
Sep 09 15:09:21 test2 ifup[164]: ifup: failed to bring up eth2

似乎 iproute2 在打开内核 5.15.53-1 未提供的表时会崩溃。dpkg -l | grep iproute ii iproute2 5.15.0-1ubuntu2

问题是:我该如何解决这个问题?似乎需要更新版本的 iproute2。

能够替代 netplan(不支持虚拟设备)

答案1

自 22.04 版起,ifupdown 在 Ubuntu 中已基本过时。它包含在存档中,以支持从旧版本升级且尚未从 过渡的用户/etc/network/interfaces。不支持对 ifupdown 进行新部署。

相关内容