サーバー構築初心者です。
固定IPの設定をすると、ネットに繋がらなくなりました。
<初期の状態>
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp
初期の状態でping google.comをすると接続すること出来ました。
しかし設定の変更に行うと出来ません。
<変更後>
# The primary network interface auto eth0 iface eth0 inet static address 10.0.2.99 netmask 255.255.255.0 gateway 10.0.2.2
sudo reboot --reboot をしてからpig google.comをしましたが
unknown hostになります。
Ubuntの他0みなるで確認したところ、
~$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback
route -nでは以下が出ました。
route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0 10.0.2.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 $