我全新安装了 SELKS(Debian 9)并手动配置了网络,但无法启动界面eno1
。
我收到错误:
RTNETLINK answers: File exists
ifup: failed to bring up eno1
Run Code Online (Sandbox Code Playgroud)
我的/etc/network/interface
配置如下:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eno1
iface eno1 inet static
address 192.168.200.32/24
gateway 192.168.200.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
Run Code Online (Sandbox Code Playgroud)
当我在安装程序中手动单击配置网络时,它是由 Debian 安装程序自动生成的,所以我猜它是正确的。
我还注意到该/var/run/network/ifstate
文件不包含eno1
,并且该ifstate.eno1
文件是空的:
root@user:/home/user# cat /var/run/network/ifstate
lo=lo
root@user:/home/user# ls /var/run/network/
ifstate ifstate.eno1 ifstate.lo …
Run Code Online (Sandbox Code Playgroud)