Network設定

ファイルは以下の設定を変更する。

/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 dhcp
iface eth0 inet static
  address ***.***.***.***
  network ***.***.***.***
  netmask ***.***.***.***
  broadcast ***.***.***.***
  gateway ***.***.***.***


DHCPサーバを使用して自動的にIPアドレスを設定する場合は、以下の設定を有効にする。

iface eth0 inet dhcp


手動でIPアドレスを設定するには以下の設定を有効にする。

iface eth0 inet static
address ***.***.***.***
network ***.***.***.***
netmask ***.***.***.***
broadcast ***.***.***.***
gateway ***.***.***.***