我有附件 /etc/network/interfaces 文件。这个文件 90% 的时间都有效,但有时,网桥在启动时无法获取 IP,并且此后再也没有获得租约。这里肯定存在竞争条件,但在哪里呢?
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto tap0
iface tap0 inet manual
pre-up openvpn --mktun --dev tap0
post-up ip link set tap0 address 70:85:cc:22:73:ae
allow-hotplug enp1s0
iface enp1s0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports enp1s0 tap0
post-up ip link set br0 address 70:85:cc:22:ae:ae