Debianのネットワーク設定は/etc/network/interfacesの1ファイルのみでしたが、wheezyからは次のようにインクルードさせる事ができるらしい。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
auto lo eth0 allow-hotplug eth1 iface lo inet loopback <strong>source interfaces.d/machine-dependent</strong> mapping eth0 script /usr/local/sbin/map-scheme map HOME eth0-home map WORK eth0-work iface eth0-home inet static address 192.168.1.1 netmask 255.255.255.0 up flush-mail iface eth0-work inet dhcp |
この例だと相対パスで書かれているけど、実際は絶対パスで書かないとうまく動かない…ぽい?
手元にwheezy環境がないから確認できず。