2011-12-28 Networkの設定 Ubuntu 最近 Ubuntu もたまに使うので、メモネットワークのインタフェースアドレスの設定 /etc/network/interfaces に書く DHCP で良ければ iface eth0 inet dhcp とか static なら iface eth0 inet static として、次の行から address, netmask, broadcast, gateway, dns-servers を記述 auto eth0 とか書いとくと、起動時に自動的に up する alias は eth0:0, eth0:1 とかに設定すれば良いらしい 使うとき interface を上げるには ifup 落とすときは ifdown