Archive for 5月, 2010

Debian GNU/Linux で、複数枚の NIC をボンディングするためには ifenslave パッケージをインストール後、以下のように設定します。

設定:eth0 と eth1 を合わせて bond0 として使う場合

/etc/network/interfaces

auto bond0
iface bond0 inet static
    address 192.168.0.xxx
    netmask 255.255.255.0
    gateway 192.168.0.1
    up /sbin/ifenslave bond0 eth0 eth1
    down /sbin/ifenslave -d bond0 eth0 eth1

/etc/modprobe.d/bonding(新規に作成)

alias bond0 bonding
options bonding mode=0 miimon=100

mode の設定など、細かいパラメータについてはここを参照してください。