ネットワークの設定

IPアドレスを固定する


ネットワークの設定用ファイルを開く

vim /etc/network/interfaces

下記を追加

auto eth1
iface eth1 inet static
address 192.168.1.202
netmask 255.255.255.0
gateway 192.168.1.1

DNSを教えるためのファイルを開く

vim /etc/resolv.conf

下記を追加

nameserver 192.168.1.1

サービスの再起動

/etc/init.d/networking restart