RTNETLINK 错误文件存在

RTNETLINK 错误文件存在

将 /etc/network/interface 文件编辑为:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.x.y
netmask 255.255.255.0
gateway 192.168.x.254
dns-nameservers 192.168.z.z 192.168.z.z

我尝试了几种方法重新启动接口。我尝试了 ifdown ifup、/etc/init.d/networking restart 甚至重新启动机器。尝试重新启动时,机器不会重新启动....尝试重新启动服务时,它给出错误“RTNETLINK 答案:文件存在”我尝试刷新“ip addr flush dev eth0”,但没有帮助....

文件是正确的,位置也是。当我用 dhcp 替换静态并散列其余配置时,它工作正常。

我有点迷路了......

谁能帮我?

维姆

相关内容