Ubuntu 16.04 掛起在“停止提升網路介面...”

Ubuntu 16.04 掛起在“停止提升網路介面...”

我正在運行 Ubuntu 16.04.3 LTS,並且需要將我的第一個介面命名為eth0。這就是為什麼我按照以下建議在 GRUB 配置中放置了以下行這個問題

GRUB_CMDLINE_LINUX="net.ifnames=0"

問題是,添加此行後,Ubuntu 在關機時掛起

"Stopping Raise network interfaces..."

Syslog/journalctl 不包含任何(有用的)訊息,所以我不知道從哪裡開始調試。我注意到當我使用時

systemctl reboot --force

重新啟動我的系統,它不會掛起。

編輯

如果配置:

eth0      Link encap:Ethernet  HWaddr 00:0c:29:b4:7b:a0
      inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
      inet6 addr: fe80::20c:29ff:feb4:7ba0/64 Scope:Link
      UP BROADCAST RUNNING  MTU:1500  Metric:1
      RX packets:29046 errors:0 dropped:0 overruns:0 frame:0
      TX packets:20150 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:185897012 (185.8 MB)  TX bytes:5042378 (5.0 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:436 (436.0 B)  TX bytes:436 (436.0 B)

貓/etc/網路/介面:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

相關內容