固定アドレスへ変更

参考URL:[Think IT] 第4回:LAMPサーバのセットアップ (1/3)
もともとの/etc/network/interfacesの内容(DHCPサーバからアドレスを取得する)

# 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

sudoでエディタnanoを実行する

~$ sudo nano /etc/network/interfaces

固定アドレスを割り当てたinterfacesに変更

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.*.***
        netmask 255.255.255.0
        gateway 192.168.*.*

ネットワーク設定の更新のためネットワークを再起動

~$ sudo /etc/init.d/networking restart

DNSサーバが設定されているか、resolv.confを確認

~$ cat /etc/resolv.conf 
nameserver ***.**.****.**
nameserver ***.**.****.***