在 Ubuntu 22.04 下,我的 networking.service 失败了。显然是因为[email protected]
失败了。但是所有网络都已启动。我用来/etc/network/interfaces
设置网络。当我尝试启动 时,[email protected]
我得到:RTNETLINK answers: File exists
。解决这个问题的方法是将“ pre-up /bin/ip addr flush dev br0
”添加到/etc/network/interfaces
。但启动后,不再有br0
。sudo ifup br0
给出:no such interface
。删除pre-up
并重新启动可恢复br0
,但现在 networking.service 和[email protected]
再次失败。Catch22...
这是接口配置的相关部分:
allow-hotplug eth0 eth1 eth1.300 eth1.254
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
bridge_stp on
bridge_maxwait 5
address 192.168.###.###/24
pre-up /bin/ip addr flush dev br0
post-up /bin/ip route add 172.x.x.x/23 via 192.168.x.x
down /bin/ip addr flush dev br0
down /bin/ip route del 172.x.x.x/23 via 192.168.x.x
iface br0 inet6 static
pre-up /usr/sbin/modprobe ipv6
address fc00:######
netmask 64
我该如何解决?