Debian 9.6不使用接口中定义的静态IP
我有以下配置: root@pihole:~# cat /etc/network/interfaces auto lo iface lo inet loopback allow-hotplug enp0s4 iface enp0s4 inet static address 192.168.2.225 netmask 255.255.255.0 gateway 192.168.2.1 当它应该是.225时,IP以某种方式分配给192.168.2.110: root@pihole:~# systemctl restart networking.service root@pihole:~# ifconfig enp0s4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.110 netmask 255.255.255.0 broadcast 192.168.2.255 inet6 fe80::2a0:98ff:fe2a:67fe prefixlen 64 scopeid 0x20<link> ether 00:a0:98:2a:67:0e txqueuelen 1000 (Ethernet) …