Talk:Bonded Interfaces With Optional VLAN

From openSUSE

Nice work!

Did you have any luck getting it going on OpenSuSE 10.3 ?

Ralf.

It's working with opensuse 10.3! (slightly different)

Hi! After playing arround for a week with bonding and vlan on a opensuse 10.3 server with boot from SAN with a Qlogic 4060c I got success. I'm using bonding with mode=4, 802.3ad LACP (but it should work with other modes also) and one VLAN with ID 2005. My /etc/sysconfig/network/ifcfg-xxx files looks like follows: ifcfg-eth0 and ifcfg-eth1:

BOOTPROTO='none'
BROADCAST=
ETHTOOL_OPTIONS=
IPADDR=
MTU=
NAME='Dell NetXtreme II BCM5708 Gigabit Ethernet'
NETMASK=
NETWORK=
REMOTE_IPADDR=
STARTMODE='off'
MASTER='bond0'
SLAVE='yes'
USERCONTROL='no'

ifcfg-bond0:

BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=4 miimon=50'
BONDING_SLAVE0='eth0'
BONDING_SLAVE1='eth1'
BOOTPROTO='static'
REMOTE_IPADDR=
STARTMODE='onboot'
USERCONTROL='no'

Please note that the POST_UP_SCRIPT line is not necessary here.

And finally the ifcfg-vlan2005 (right, no dot between vlan and 2005):

BOOTPROTO="static"
ETHERDEVICE=bond0
STARTMODE="onboot"
USERCTL=no
IPADDR=10.0.0.115
NETMASK=255.255.255.0
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
MTU=
REMOTE_IPADDR=
USERCONTROL='no'

This configuration is working for me, but unfortunately a rcnetwork restart is failing and the network is no longer working after. It seems the /etc/init.d/network script is too fast with starting after the stop command. Quick and dirty workarround:
edit the "restart|force-reload" section and add a sleep before the start-line (I've entered a sleep 10):

restart|force-reload)
               $0 stop $CONFIG $INTERFACE ${OPTIONS:+-o $OPTIONS}
               echo "Waiting 10 seconds to get sure that the vlan and bond devices are really uninitialized"
               sleep 10
               $0 start $CONFIG $INTERFACE ${OPTIONS:+-o $OPTIONS}
               rc_status
               rc_exit
               ;;

Hope this helps someone...

CU Hartmut