在我的新 Debian 9 中无法获取静态 IP。
在我的 etc/network/interfaces 我有以下
# This file describes the network interfaces available on your system
# and how to activate them
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.88.10
netmask 255.255.255.0
gateway 192.168.88.1 // this is my router ip
network 192.168.88.0 // this is I don't know why, but I saw it in most of instructions
broadcast 192.168.88.255
dns-nameservers 192.168.88.1
然后我这样做
service networking restart
我得到了错误
Job for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.