bond1を作成し、eth2, eth3それぞれLANケーブルを抜いたりさしたりして検証中に遭遇。
bond0を作成し、eth0, eth1では問題が起こらない。
参考
/etc/init.d/network restart しろとのこと。
これで回避は出きるが・・・
CentOS5.10以降、bondingの書き方が少し変わった様子
ifcfg-bondN に BONDING_OPTS="bonding ..."で記述
modprobe.confにはbondingに対するオプションを記述とのこと。
/etc/sysconfig/network-scripts/ifcfg-bond0
- BONDING_OPTS="mode=active-backup miimon=100"
/etc/sysconfig/network-scripts/ifcfg-bond1
- BONDING_OPTS="mode=active-backup miimon=100"
/etc/modprobe.conf
alias bond0 bonding
options bond0 mode=active-backup miimon=100 max_bonds=2
alias bond1 bonding
options bond1 mode=active-backup miimon=100 max_bonds=2
mode=1: active-backup
udevの書き方(CentOS 5.11)
/etc/sysconfig/network-scripts/ifcfg-eth[0-3]の例
+ HWADDR=00:30:48:56:A6:21
/etc/udev/rules.d/60-net.rules
+ KERNEL=="eth*", SYSFS{address}=="00:30:48:56:A6:21", NAME="eth0"
+ KERNEL=="eth*", SYSFS{address}=="00:30:48:56:A6:22", NAME="eth1"
+ KERNEL=="eth*", SYSFS{address}=="00:30:48:56:A6:23", NAME="eth2"
+ KERNEL=="eth*", SYSFS{address}=="00:30:48:56:A6:24", NAME="eth3"
OS再起動し、反映
eth1, eth3 5行目