John Craig wrote:
Hi,
Can anybody give me an idea about how to properly set up a server to be configured for ethernet trunking at boot time? Our file server is a dual Opteron running SuSE 9.0 for AMD64, and has dual gigabit ethernet cards, and I have them both connected to the switch (with trunking enabled for those ports). I am doing this with a kluge, but have not had the time or patience to figure out how to do it better. The commands I use are:
ifconfig eth0 down ifconfig eth1 down ifconfig bond0 192.168.0.100 ifenslave bond0 eth0 ifenslave bond0 eth1
The modules.conf file has:
alias bond0 bonding alias eth0 bcm5700 alias eth1 bcm5700
In YaST, I configured eth0 and eth1 with dummy ipnumbers, just to make sure that the driver loads and the interfaces exist, that's the reason why they have to be stopped before bringing up bond0. I added "alias bond0 bonding" manually to modules.conf.
Is anybody else out there using ethernet trunking (bonding), and how to you set it up?
Thanks,
John Craig
Hi John, for ethernet bonding to work it is necessary to put the same MAC address on both network cards (eth0,eth1) before assigning an IP address to the bond device. It is not required to give an IP address to the slave cards, just load the bcm5700 module, set the same MAC address on the slave cards and configure the bond device: (the system loads the bcm5700 and bonding modules via /etc/modules.conf) /sbin/ifconfig eth1 hw ether ETH0_MAC_ADDRESS /sbin/ifconfig bond0 IP_ADDRESS netmask NET_MASK broadcast BROADCAST /sbin/ifenslave bond0 eth0 eth1 When the bcm5700 module gets loaded it prints the information of each network card (including the MAC addresses) into the file /var/log/messages. - Jose Luis -- JosA~(c) Luis RICARDO-CHAVEZ Tel. +33-5-61-55-68-33 Laboratoire de Physique Quantique Fax +33-5-61-55-60-65 UniversitA~(c) Paul Sabatier 118 route de Narbonne F-31062 Toulouse, France e-mail: ricardo@irsamc.ups-tlse.fr