
/etc/network/interfaces
しかし、私は私を設定しました。常にネットワークを再起動する必要があります。、単なる始まりではありません。/etc/init.d/networking restart
システム起動時。何が問題なの?私は私のネットワークが欲しい自動的に作業システム起動時。
私の/etc/network/interfacesの設定
# 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
auto eth0
allow-hotplug eth0
# The primary network interface
iface eth0 inet static
address 192.168.1.21
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 192.168.1.1
DHCPにも同じ問題があります。
rc.localはうまくいくかもしれませんが、正しいアプローチではないと思います。