debian のネットワークの設定

eth0 を dhcp にする場合. /etc/network/interfaces に次のように書く.

auto eth0
iface eth0 inet dhcp

auto eth0 は,自動起動を行うことを意味する. redhat系の ONBOOT=yes に相当.

eth0 を 手動設定する場合.

auto eth0
iface eth0 inet static
        address          x.x.x.x
        netmask         x.x.x.x
        gateway         x.x.x.x