从 Trusty 升级到 Xenial 后网络出现故障

从 Trusty 升级到 Xenial 后网络出现故障

我已将台式机从 Trusty 升级到 Xenial。启动后,网络接口无法获取 IP 地址。

我的interfaces文件没有改变:

# The primary network interface
auto eth2
iface eth2 inet dhcp
 metric 10
 up ifconfig eth2 mtu 7152
iface eth2 inet6 auto

如果我删除,iface eth2 inet6 auto那么设备将接收(维护)一个 IPv6 地址,这是由内核完成的,所以至少我有一些连接。

启动后我注意到它dhclient已被终止,但它在启动期间已启动(日志如下)。

一些事实:

  1. 网络上所有其他设备都可以轻松获取 IP 地址(几乎所有 Linux/Android 设备)。
  2. 其他 Xenial(全新安装)机器没有问题,并且具有相同风格的interfaces文件。
  3. 剩下的一台 Trusty 机器没有问题;在问题解决之前,我不愿意更新它。
  4. sudo service networking restart使一切正常,所以我怀疑systemd他是罪魁祸首。
  5. 我不会、也不想使用NetworkManager。它从来都不能正确处理我的其他网络设备。
  6. 我正在使用专有网络驱动程序:开源驱动程序不可靠,但我怀疑这是一个驱动程序问题,因为第 4 点。
  7. lxcbr0由 单独提出lxc。这按预期工作。

来自syslog

Mar  7 15:16:46 ken systemd[1]: Found device RTL8169 PCI Gigabit Ethernet Controller (RTL8169/8110 Family PCI Gigabit Ethernet NIC).
Mar  7 15:16:46 ken dhclient[548]: Internet Systems Consortium DHCP Client 4.3.3
Mar  7 15:16:46 ken systemd[1]: Started ifup for eth2.
Mar  7 15:16:46 ken sh[888]: ifup: interface eth2 already configured
Mar  7 15:16:46 ken systemd[1]: Starting Raise network interfaces...
Mar  7 15:16:46 ken ifup[918]: /bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/bridge
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/ethtool
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Mar  7 15:16:46 ken ifup[918]: Configuring interface lo=lo (inet)
Mar  7 15:16:46 ken ifup[918]: /bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/bridge
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/ethtool
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Mar  7 15:16:46 ken ifup[918]: /bin/ip link set dev lo up
Mar  7 15:16:46 ken ifup[918]: /bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/000resolvconf
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/avahi-daemon
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ethtool
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ifmetric
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ntpdate
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/openssh-server
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/sendmail
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/upstart
Mar  7 15:16:46 ken ifup[918]: /bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/000resolvconf
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/avahi-daemon
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ethtool
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ifmetric
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/ntpdate
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/openssh-server
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/sendmail
Mar  7 15:16:46 ken ifup[918]: run-parts: executing /etc/network/if-up.d/upstart
Mar  7 15:16:46 ken systemd[1]: Started Raise network interfaces.
Mar  7 15:16:46 ken systemd[1]: Starting Restore /etc/resolv.conf if the system crashed before the ppp link was shut down...
Mar  7 15:16:46 ken kernel: [    6.689859] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Mar  7 15:16:46 ken kernel: [    6.724978] r8169 0000:02:02.0 (unnamed net_device) (uninitialized): not PCI Express
Mar  7 15:16:46 ken kernel: [    6.809724] r8169 0000:02:02.0 eth0: RTL8169sb/8110sb at 0xf8126f00, 80:1f:<snip>, XID 10000000 IRQ 17
Mar  7 15:16:46 ken kernel: [    6.838215] r8169 0000:02:02.0 eth0: jumbo features [frames: 7152 bytes, tx checksumming: ok]
Mar  7 15:16:46 ken kernel: [    6.874136] r8169 0000:02:02.0 eth2: renamed from eth0
Mar  7 15:16:46 ken kernel: [   26.872559] r8169 0000:02:02.0 eth2: link down
Mar  7 15:16:46 ken kernel: [   26.872571] r8169 0000:02:02.0 eth2: link down
Mar  7 15:16:46 ken kernel: [   26.872625] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
Mar  7 15:16:46 ken kernel: [   29.224117] r8169 0000:02:02.0 eth2: link up
Mar  7 15:16:46 ken kernel: [   29.224149] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
Mar  7 15:16:46 ken kernel: [   29.849186] audit: type=1400 audit(1520435798.058:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=776 comm="apparmor_parser"
Mar  7 15:16:46 ken kernel: [   33.936245] ip_tables: (C) 2000-2006 Netfilter Core Team
Mar  7 15:16:46 ken kernel: [   35.074776] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Mar  7 15:16:49 ken dnsmasq[1614]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Mar  7 15:16:49 ken dnsmasq-dhcp[1614]: DHCP, IP range 10.0.3.2 -- 10.0.3.254, lease time 1h
Mar  7 15:16:52 ken avahi-daemon[1401]: Successfully called chroot().
Mar  7 15:16:52 ken avahi-daemon[1401]: Successfully dropped remaining capabilities.
Mar  7 15:16:52 ken avahi-daemon[1401]: Loading service file /services/apt-cacher-ng.service.
Mar  7 15:16:52 ken avahi-daemon[1401]: Joining mDNS multicast group on interface lxcbr0.IPv4 with address 10.0.3.1.
Mar  7 15:16:52 ken avahi-daemon[1401]: New relevant interface lxcbr0.IPv4 for mDNS.
Mar  7 15:16:52 ken avahi-daemon[1401]: Joining mDNS multicast group on interface eth2.IPv6 with address 2a02:c7f:<snip>.
Mar  7 15:16:52 ken avahi-daemon[1401]: New relevant interface eth2.IPv6 for mDNS.
Mar  7 15:16:52 ken avahi-daemon[1401]: Network interface enumeration completed.
Mar  7 15:16:52 ken avahi-daemon[1401]: Registering new address record for 10.0.3.1 on lxcbr0.IPv4.
Mar  7 15:16:52 ken avahi-daemon[1401]: Registering new address record for 2a02:c7f:<snip> on eth2.*.
Mar  7 15:16:52 ken avahi-dnsconfd[1070]: Successfully connected to Avahi daemon
Mar  7 15:16:57 ken ntpd[1996]: Listen normally on 4 eth2 [2a02:c7f:<snip>]:123
Mar  7 15:16:57 ken ntpd[1996]: Listen normally on 5 eth2 [fe80::821f:<snip>%2]:123

这并没有告诉我太多信息,除了eth2似乎“已经配置”,它曾是直到dhclient消失/死亡。ifconfig确认eth2不再配置/没有 IP 地址分配。

发行后$ sudo service networking restart

Mar  7 15:18:31 ken systemd[1]: Stopping Raise network interfaces...
Mar  7 15:18:31 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-down.d
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/clamav-freshclam-ifupdown
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/resolvconf
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/sendmail
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/upstart
Mar  7 15:18:31 ken ifdown[3528]: Configuring interface eth2=eth2 (inet)
Mar  7 15:18:31 ken ifdown[3528]: Terminating ifup (pid 510)
Mar  7 15:18:31 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-down.d
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/clamav-freshclam-ifupdown
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/resolvconf
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/sendmail
Mar  7 15:18:31 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/upstart
Mar  7 15:18:31 ken ifdown[3528]: /sbin/dhclient -v -r -pf /run/dhclient.eth2.pid -lf /var/lib/dhcp/dhclient.eth2.leases -I -df /var/lib/dhcp/dhclient6.eth2.leases eth2
Mar  7 15:18:31 ken dhclient[3557]: Internet Systems Consortium DHCP Client 4.3.3
Mar  7 15:18:31 ken ifdown[3528]: Internet Systems Consortium DHCP Client 4.3.3
Mar  7 15:18:31 ken ifdown[3528]: Copyright 2004-2015 Internet Systems Consortium.
Mar  7 15:18:31 ken ifdown[3528]: All rights reserved.
Mar  7 15:18:31 ken ifdown[3528]: For info, please visit https://www.isc.org/software/dhcp/
Mar  7 15:18:31 ken dhclient[3557]: Copyright 2004-2015 Internet Systems Consortium.
Mar  7 15:18:31 ken dhclient[3557]: Listening on LPF/eth2/80:1f:<snip>
Mar  7 15:18:31 ken dhclient[3557]: Sending on   LPF/eth2/80:1f:<snip>
Mar  7 15:18:31 ken ifdown[3528]: Listening on LPF/eth2/80:1f:<snip>
Mar  7 15:18:31 ken ifdown[3528]: Sending on   LPF/eth2/80:1f:<snip>
Mar  7 15:18:31 ken ifdown[3528]: Sending on   Socket/fallback
Mar  7 15:18:31 ken dhclient[3557]: DHCPRELEASE on eth2 to 192.168.0.1 port 67 (xid=0x353c1ac6)
Mar  7 15:18:31 ken ifdown[3528]: DHCPRELEASE on eth2 to 192.168.0.1 port 67 (xid=0x353c1ac6)
Mar  7 15:18:31 ken ifdown[3528]: send_packet: Network is unreachable
Mar  7 15:18:31 ken ifdown[3528]: send_packet: please consult README file regarding broadcast address.
Mar  7 15:18:31 ken ifdown[3528]: dhclient.c:2474: Failed to send 300 byte long packet over fallback interface.
Mar  7 15:18:32 ken ifdown[3528]: /bin/ip link set dev eth2 down
Mar  7 15:18:32 ken avahi-daemon[1401]: Interface eth2.IPv6 no longer relevant for mDNS.
Mar  7 15:18:32 ken avahi-daemon[1401]: Leaving mDNS multicast group on interface eth2.IPv6 with address 2a02:c7f:<snip>.
Mar  7 15:18:32 ken avahi-daemon[1401]: Withdrawing address record for 2a02:c7f:<snip> on eth2.
Mar  7 15:18:32 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-post-down.d
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/avahi-daemon
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/bridge
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/sendmail
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/wireless-tools
Mar  7 15:18:32 ken ifdown[3528]: Configuring interface eth2=eth2 (inet6)
Mar  7 15:18:32 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-down.d
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/clamav-freshclam-ifupdown
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/resolvconf
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/sendmail
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-down.d/upstart
Mar  7 15:18:32 ken ifdown[3528]: /bin/ip -6 addr flush dev eth2 scope global
Mar  7 15:18:32 ken ifdown[3528]: /bin/ip link set dev eth2 down
Mar  7 15:18:32 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-post-down.d
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/avahi-daemon
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/bridge
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/sendmail
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/wireless-tools
Mar  7 15:18:32 ken ifdown[3528]: /bin/run-parts --verbose /etc/network/if-post-down.d
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/avahi-daemon
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/bridge
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/sendmail
Mar  7 15:18:32 ken ifdown[3528]: run-parts: executing /etc/network/if-post-down.d/wireless-tools
Mar  7 15:18:32 ken systemd[1]: Stopped Raise network interfaces.
Mar  7 15:18:32 ken systemd[1]: Starting Raise network interfaces...
Mar  7 15:18:32 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/bridge
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/ethtool
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Mar  7 15:18:32 ken ifup[3670]: Configuring interface eth2=eth2 (inet)
Mar  7 15:18:32 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/bridge
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/ethtool
Mar  7 15:18:32 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Mar  7 15:18:32 ken ifup[3670]: /sbin/dhclient -1 -v -pf /run/dhclient.eth2.pid -lf /var/lib/dhcp/dhclient.eth2.leases -I -df /var/lib/dhcp/dhclient6.eth2.leases eth2 #011-e IF_METRIC=10
Mar  7 15:18:32 ken dhclient[3685]: Internet Systems Consortium DHCP Client 4.3.3
Mar  7 15:18:32 ken ifup[3670]: Internet Systems Consortium DHCP Client 4.3.3
Mar  7 15:18:32 ken dhclient[3685]: Copyright 2004-2015 Internet Systems Consortium.
Mar  7 15:18:32 ken ifup[3670]: Copyright 2004-2015 Internet Systems Consortium.
Mar  7 15:18:32 ken ifup[3670]: All rights reserved.
Mar  7 15:18:32 ken ifup[3670]: For info, please visit https://www.isc.org/software/dhcp/
Mar  7 15:18:32 ken kernel: [  143.552575] r8169 0000:02:02.0 eth2: link down
Mar  7 15:18:32 ken kernel: [  143.552602] r8169 0000:02:02.0 eth2: link down
Mar  7 15:18:32 ken kernel: [  143.552903] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
Mar  7 15:18:32 ken dhclient[3685]: Listening on LPF/eth2/80:1f:<snip>
Mar  7 15:18:32 ken ifup[3670]: Listening on LPF/eth2/80:1f:<snip>
Mar  7 15:18:32 ken ifup[3670]: Sending on   LPF/eth2/80:1f:<snip>
Mar  7 15:18:32 ken ifup[3670]: Sending on   Socket/fallback
Mar  7 15:18:32 ken ifup[3670]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 3 (xid=0xb7272453)
Mar  7 15:18:32 ken dhclient[3685]: Sending on   LPF/eth2/80:1f:<snip>
Mar  7 15:18:32 ken dhclient[3685]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 3 (xid=0xb7272453)
Mar  7 15:18:33 ken boinc[1160]: No protocol specified
Mar  7 15:18:34 ken boinc[1160]: No protocol specified
Mar  7 15:18:34 ken ntpd[1996]: Deleting interface #4 eth2, 2a02:c7f:<snip>#123, interface stats: received=35, sent=36, dropped=0, active_time=97 secs
Mar  7 15:18:34 ken ntpd[1996]: Deleting interface #5 eth2, fe80::821f:<snip>%2#123, interface stats: received=0, sent=0, dropped=0, active_time=97 secs
Mar  7 15:18:35 ken dhclient[3685]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 7 (xid=0xb7272453)
Mar  7 15:18:35 ken ifup[3670]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 7 (xid=0xb7272453)
Mar  7 15:18:36 ken kernel: [  146.957197] r8169 0000:02:02.0 eth2: link up
Mar  7 15:18:36 ken kernel: [  146.957212] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
Mar  7 15:18:37 ken ntpd[1996]: unable to create socket on eth2 (6) for fe80::821f:<snip>%2#123
Mar  7 15:18:37 ken avahi-daemon[1401]: Joining mDNS multicast group on interface eth2.IPv6 with address fe80::821f:<snip>.
Mar  7 15:18:37 ken avahi-daemon[1401]: New relevant interface eth2.IPv6 for mDNS.
Mar  7 15:18:37 ken avahi-daemon[1401]: Registering new address record for fe80::821f:<snip> on eth2.*.
Mar  7 15:18:39 ken avahi-daemon[1401]: Leaving mDNS multicast group on interface eth2.IPv6 with address fe80::821f:<snip>.
Mar  7 15:18:39 ken avahi-daemon[1401]: Joining mDNS multicast group on interface eth2.IPv6 with address 2a02:c7f:<snip>.
Mar  7 15:18:39 ken avahi-daemon[1401]: Registering new address record for 2a02:c7f:<snip> on eth2.*.
Mar  7 15:18:39 ken avahi-daemon[1401]: Withdrawing address record for fe80::821f:<snip> on eth2.
Mar  7 15:18:40 ken ntpd[1996]: Listen normally on 7 eth2 [2a02:c7f:<snip>]:123
Mar  7 15:18:40 ken ntpd[1996]: Listen normally on 8 eth2 [fe80::821f:<snip>%2]:123
Mar  7 15:18:42 ken dhclient[3685]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 10 (xid=0xb7272453)
Mar  7 15:18:42 ken ifup[3670]: DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 10 (xid=0xb7272453)
Mar  7 15:18:42 ken dhclient[3685]: DHCPREQUEST of 192.168.0.13 on eth2 to 255.255.255.255 port 67 (xid=0x532427b7)
Mar  7 15:18:42 ken ifup[3670]: DHCPREQUEST of 192.168.0.13 on eth2 to 255.255.255.255 port 67 (xid=0x532427b7)
Mar  7 15:18:42 ken ifup[3670]: DHCPOFFER of 192.168.0.13 from 192.168.0.1
Mar  7 15:18:42 ken ifup[3670]: DHCPACK of 192.168.0.13 from 192.168.0.1
Mar  7 15:18:42 ken avahi-daemon[1401]: Joining mDNS multicast group on interface eth2.IPv4 with address 192.168.0.13.
Mar  7 15:18:42 ken avahi-daemon[1401]: New relevant interface eth2.IPv4 for mDNS.
Mar  7 15:18:42 ken avahi-daemon[1401]: Registering new address record for 192.168.0.13 on eth2.IPv4.
Mar  7 15:18:43 ken boinc[1160]: No protocol specified
Mar  7 15:18:43 ken ifup[3670]: bound to 192.168.0.13 -- renewal in 36499 seconds.
Mar  7 15:18:43 ken ifup[3670]: ifconfig eth2 mtu 7152
Mar  7 15:18:43 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/000resolvconf
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/avahi-daemon
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ethtool
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ifmetric
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ntpdate
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/openssh-server
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/sendmail
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/upstart
Mar  7 15:18:43 ken ifup[3670]: Configuring interface eth2=eth2 (inet6)
Mar  7 15:18:43 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/bridge
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/ethtool
Mar  7 15:18:43 ken ifup[3670]: run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Mar  7 15:18:43 ken ifup[3670]: /sbin/modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.
Mar  7 15:18:44 ken ifup[3670]: /sbin/sysctl -q -e -w net.ipv6.conf.eth2.accept_ra=2
Mar  7 15:18:44 ken ifup[3670]: /sbin/sysctl -q -e -w net.ipv6.conf.eth2.autoconf=1
Mar  7 15:18:44 ken ifup[3670]: /bin/ip link set dev eth2 up
Mar  7 15:18:44 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/000resolvconf
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/avahi-daemon
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ethtool
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ifmetric
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ntpdate
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/openssh-server
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/sendmail
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/upstart
Mar  7 15:18:44 ken ifup[3670]: /bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/000resolvconf
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/avahi-daemon
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/clamav-freshclam-ifupdown
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ethtool
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ifmetric
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/ntpdate
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/openssh-server
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/sendmail
Mar  7 15:18:44 ken ifup[3670]: run-parts: executing /etc/network/if-up.d/upstart
Mar  7 15:18:44 ken systemd[1]: Started Raise network interfaces.
Mar  7 15:18:44 ken boinc[1160]: No protocol specified
Mar  7 15:18:44 ken ntpd[1996]: Listen normally on 9 eth2 192.168.0.13:123

我在 Google 上搜索了各种短语和术语,但没有找到答案。我的问题类似于这个,甚至可能相同,但诉诸nmcli于是我最后的手段。我很乐意使用systemd它来配置我的接口,但我会失去sysv兼容性(我可能无论如何都不需要它),而且其他设备可以很好地使用该文件,这让我很恼火interfaces

很多新的配置文件systemd,我无法猜测在哪里可以找到发生了什么。我甚至不知道如何在 中使任何内容变得详细systemd

我很困惑。救命啊!

相关内容