玄箱HG debian lenny (3)ネットワーク設定

ネットワーク設定

IP変更

$ vi /etc/network/interfaces


    address 192.168.0.2
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1

hostname変更

$ vi /etc/hostname
    hogehost

hosts変更

$ vi /etc/hosts
  追加
    127.0.0.1       localhost.localadmin    localhost
    192.168.0.2    hogehost
    192.168.0.21   hogebokan
  などなど

DNS設定

$ vi /etc/resolv.conf
    nameserver=192.168.0.1

再起動