eth0は自動的に設定されません

eth0は自動的に設定されません

ubuntu 12.10インスタンスを起動すると、eth0は設定されません。

davidparks21@MySqlDB:~$ cat /run/network/ifstate
lo=lo

手動で編集しifstate、追加し、eth0=eth0正しく設定すると、service restart networking私たちeth0は両方満足しています。

ただし、再起動後に構成が失われるため、手動で編集してifstate再追加した後にネットワークを再起動する必要があります。

ここでどの構成が欠落している可能性がありますか?


root@prodweb1:~# cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
 address 10.1.3.10
 netmask 255.255.0.0
 broadcast 10.1.255.255
 gateway 10.1.0.1
 dns-nameservers 8.8.8.8
 dns-nameservers 8.8.4.4

ベストアンサー1

再起動時に開始するには、以下のようにeth0エントリを追加する必要があります。/etc/network/interfaceseth0

auto eth0
iface eth0 inet dhcp

おすすめ記事