Ubuntu Server 16.10 静态网络 - 无法提升接口

Ubuntu Server 16.10 静态网络 - 无法提升接口

我需要一些帮助,因为我快要疯了,想弄清楚这一点。我一直在使用本指南运行带有拆分隧道设置的静态网络:https://www.htpcguides.com/force-torrent-traffic-vpn-split-tunnel-debian-8-ubuntu-16-04/这个设置已经工作了一段时间(大约 3 个月),直到我用一个新的交换机替换了一个交换机并添加了一些新电缆。我不确定这对接口有什么影响,但出于某种原因,它不想再加载接口了。我在下面提供了一些信息以提供帮助。

这是我当前的 /etc/network/interfaces 文件:

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eno1
iface eno1 inet static
address 192.168.0.30
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8 8.8.4.4

# Secondary NIC Interface
auto eno2
iface eno2 inet static
address 192.168.0.31
netmask 255.255.255.0

# Auto IPV6
iface eno1 inet6 auto
iface eno2 inet6 auto

这是我从 ifconfig 获得的打印输出:

journey@ubuntu1:~$ ifconfig -a
eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 
      inet 192.168.0.30  netmask:255.255.255.0 broadcast:192.168.0.255
      inet6 fe80::226:b9ff:fe47:b411 prefixlen 64 scopeid 0x20 <link>
      ether 00:26:b9:47:b4:11  txqueuelen 1000 (Ethernet)
      RX packets:0  bytes 0 (0.0 B)
      RX errors:0 dropped:1 overruns:0 frame:0
      TX packets:236  bytes 20479 (20.4KB)
      TX errors:0 dropped:0 overruns:0 carrier:0 collisions:0
      device interrupt 16

eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 
      inet 192.168.0.31  netmask:255.255.255.0 broadcast:192.168.0.255
      inet6 fe80::226:b9ff:fe47:b412 prefixlen 64 scopeid 0x20 <link>
      ether 00:26:b9:47:b4:12  txqueuelen 1000 (Ethernet)
      RX packets:3029  bytes 602269 (602.2 KB)
      RX errors:0 dropped:567 overruns:0 frame:0
      TX packets:168  bytes 27982 (27.9 KB)
      TX errors:0 dropped:0 overruns:0 carrier:0 collisions:0
      device interrupt 17

lo:   flags=4163<UP,LOOPBACK,RUNNING> mtu 65536
      inet 127.0.0.1  netmask:255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10 <host>
      loop  txqueuelen 1 (Local Loopback)
      RX packets:63452  bytes 6432026 (6.4 MB)
      RX errors:0 dropped:567 overruns:0 frame:0
      TX packets:63452  bytes 6432026 (6.4 MB)
      TX errors:0 dropped:0 overruns:0 carrier:0 collisions:0

现在这是我的 ip addr 输出:

journey@ubuntu1:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
   inet6 ::1/128 scope host 
      valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state UP group default qlen 1000
   link/ether 00:26:b9:47:b4:11 brd ff:ff:ff:ff:ff:ff
   inet 192.168.0.30/24 brd 192.168.0.255 scope global eno1
      valid_lft forever preferred_lft forever
   inet6 fe80::226:b9ff:fe47:b411/64 scope link 
      valid_lft forever preferred_lft forever
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
   link/ether 00:26:b9:47:b4:12 brd ff:ff:ff:ff:ff:ff
   inet 192.168.0.31/24 brd 192.168.0.255 scope global eno2
      valid_lft forever preferred_lft forever
   inet6 fe80::226:b9ff:fe47:b412/64 scope link 
      valid_lft forever preferred_lft forever

到目前为止,我无法 ping 通 Google 或网关 (192.168.0.1)。100% 数据包丢失。我还看到 VPN 未连接,并且由于无法提升网络接口,导致启动时间额外增加 5 分钟。

我还想指出,我有另一台服务器运行在同一台交换机上,具有几乎相同的接口文件,并且运行良好(是的,它也以完全相同的方式设置了拆分 VPN)。请在此处查看该接口文件(请注意,这是一台 Ubuntu 16.04 服务器,而不是 16.10,并且是仅配置了拆分隧道的全新安装):

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eno1
iface eno1 inet static
address 192.168.0.33
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8 8.8.4.4

# Secondary NIC Interface
auto eno2
iface eno2 inet static
address 192.168.0.34
netmask 255.255.255.0

# Auto IPV6
iface eno1 inet6 auto
iface eno2 inet6 auto

任何可以补充的见解都将不胜感激,因为我不知道下一步该尝试什么。谢谢!

编辑1:

按要求输出:

journey@ubuntu1:~$ ip r l
192.168.0.0/24 dev eno1  proto kernel  scope link  scr 192.168.0.30 linkdown
192.168.0.0/24 dev eno1  proto kernel  scope link  scr 192.168.0.31

journey@ubuntu1:~$ sudo mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: No such device

journey@ubuntu1:~$ sudo mii-tool eth1
SIOCGMIIPHY on 'eth1' failed: No such device

journey@ubuntu1:~$ sudo mii-tool eno1
eno1:no link

journey@ubuntu1:~$ sudo mii-tool eno2
eno2: negotiated 1000baseT-FD flow-control, link ok

相关内容