Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
/etc/网络/接口
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eno1
iface eno1 inet static
address 192.168.1.249
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
dns 192.168.1.1
/etc/network/interfaces.d/setup
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
/etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
为什么检测不到以太网端口断开和重新连接的事件?
答案1
您可能想要auto eno1
在 之前添加iface eno1 inet static
。