揮発性のメモ2

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

/etc/network/interfaces で、USB-LAN用の設定

/etc/network/interfaces.d/HOGEHOGE で、抜いたり挿したりが発生するインターフェースは
auto じゃなくて allow-hotplug で書く

# 内蔵LAN
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 172.16.0.2
        netmask 255.255.0.0
        gateway 172.16.0.1

# USB-有線LAN
allow-hotplug eth1
iface eth1 inet static
        address 192.168.0.2
        netmask 255.255.255.0