[Cialug] NIC Bonding under Linux/Debian
Nathan C. Smith
nathan.smith at ipmvs.com
Mon Mar 29 13:05:49 CDT 2010
I was following a couple how-tos I found so I'm looking for advice.
I will try pulling the hotplug lines. Your suggestions look more simple and clean.
Wow, you are bonding a lot of interfaces.
I tried the same config I had only with a static IP and it worked, so John may be right about his order-of-DHCP suggestion.
-Nate
-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf Of Aaron Porter
Sent: Friday, March 26, 2010 12:46 PM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] NIC Bonding under Linux/Debian
On Thu, Mar 25, 2010 at 8:07 PM, Nathan C. Smith <nathan.smith at ipmvs.com> wrote:
> I'm wondering about some of the directives in the interfaces file, here is an excerpt:
>
> allow-hotplug eth0
> allow-hotplug eth1
> auto bond0
> iface bond0 inet dhcp
> pre-up ifconfig bond0 up
> up ifenslave bond0 eth1 eth0
Ok... I think you can get rid of the hotplug lines. Also, why would
you ifconfig up a device during a pre-up? So you want it up before it
gets configured? I'd expect it to look more like:
auto bond0
iface bond0 inet dhcp
up ifenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1
post-down rmmod bonding
My live config:
#base interface
auto bond0
iface bond0 inet static
address 10.10.41.20
netmask 255.255.255.0
gateway 10.10.41.254
pre-up modprobe bonding mode=4 miimon=100 xmit_hash_policy=layer3+4
up ifenslave bond0 eth0 eth1 eth2 eth3 eth4 eth5
post-up /usr/local/bin/spread_eth_irq
down ifenslave -d bond0 eth0 eth1 eth2 eth3 eth4 eth5
post-down rmmod bonding
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list