ネットワークアドレスの変更

Web サーバにする予定なので IP を固定に変更。

コマンドは

sudo pico /etc/network/interfaces

で、ファイルの内容を下記のようにした。

auto lo

iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp