揮発性のメモ2

http://d.hatena.ne.jp/iww/

ifupコマンドが動作しない

ifup eth1で、ネットワークが自動的に有効にならない。

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.1.101
        netmask 255.255.255.0
        gateway 192.168.1.1

allow-hotplug eth1
iface eth1 inet static
        address 192.168.2.1

ネットマスクの設定が無いのでエラーになっていた。netmask 255.255.255.0を書き足して解決。