You are not logged in.
Pages: 1
Topic closed
I found using Arch with bonding.ko driver that have some issues regarding having 4 adapters with 2 bondings in different modes.
The scenario:
bond0 : eth0 eth1 mode failover
bond1: eth2 eth3 mode alb
The problem:
All bond interfaces stays in failover mode.
The solution:
# modprobe.conf file #
options bonding miimon=100 max_bonds=2
alias bond0 bonding
alias bond1 bonding
Now the changes if Arch People agrees.big_smile
on file /etc/conf.d/bonding
add a new VARIABLE called
Code:
mod_bond0="1"
mod_bond1="6"
and i changed the /etc/rc.d/network script a little
on function bond_up
Code:
for ifline in ${BOND_INTERFACES[@]}; do
if [ "$ifline" = "${ifline#!}" ]; then
eval bondcfg="\$bond_${ifline}"
eval bondmod="\$mod_${ifline}" ### Add this line to get bonding mode #########
if [ -n "${bondcfg}" ]; then
/sbin/ifenslave $ifline $bondcfg || error=1
fi
#### adding this condition to apply mode to bonding adapter #################
if [ -n "${bondmod}" ]; then
/sbin/ifconfig $ifline down || error=1
/bin/echo $bondmod > /sys/class/net/$ifline/bonding/mode || error=1
/sbin/ifconfig $ifline up || error=1
fi
fi
done
on function bond_down
Code:
for ifline in ${BOND_INTERFACES[@]}; do
if [ "$ifline" = "${ifline#!}" ]; then
eval bondcfg="\$bond_${ifline}"
/sbin/ifenslave -d $ifline $bondcfg || error=1
/sbin/ifconfig $ifline down || error=1
fi
done
This code solve my problem, and works very well in my ArchLinux, my suggestion is if it is possible to include this changes in next initscripts package.
Cheers,
Daniel
Offline
Welcome to the Arch Linux forums dsf
Please don't cross-post:
http://bbs.archlinux.org/viewtopic.php?id=87335
You should read the Forum Etiquette before posting: http://wiki.archlinux.org/index.php/Forum_Etiquette
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I'll close this one...
Offline
Pages: 1
Topic closed