nic-bonding
Tom H
tomh0665 at gmail.com
Tue Jul 26 15:22:22 UTC 2011
2011/7/25 Reza Ambler <Reza.Ambler at vintalk.com>:
>
> I have 2 NIC cards in my system, each is dual-port. One of the dual-port sets is on-board a supermicro motherboard, the other is added in via PciX.
>
> 1st Model : Dual Intel 82574L (on supermicro board, 6016T-MTHF)
> 2nd Model : EXPI9402PTBLK
>
> My NIC devices and respective MACs
> eth0/1 are part of the same controller
> eth2/3 are part of the same controller
>
> 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
> link/ether 00:1b:21:a5:3d:ee brd ff:ff:ff:ff:ff:ff
>
> 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
> link/ether 00:1b:21:a5:3d:ef brd ff:ff:ff:ff:ff:ff
>
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
> link/ether 00:25:90:31:84:7c brd ff:ff:ff:ff:ff:ff
>
> 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
> link/ether 00:25:90:31:84:7d brd ff:ff:ff:ff:ff:ff
>
> My /etc/modprobe.d/bonding.conf settings:
> alias bond0 bonding
> options bonding mode=1 miimon=100
> alias netdev-bond1 bonding
> options bonding mode=1 miimon=100
>
> My /etc/networking/interfaces config:
>
> auto lo
> iface lo inet loopback
>
> auto eth0
> auto eth1
> auto eth2
> auto eth3
>
> auto bond0
> iface bond0 inet static
> address 64.94.xxx.xxx
> gateway 64.94.xxx.xxx
> netmask 255.255.255.128
> bond-slaves eth2 eth3
> bond-mode 1
>
> auto bond1
> iface bond1 inet static
> address 192.168.140.140
> netmask 255.255.255.0
> bond-slave eth0 eth1
> bond-mode 1
You can have "bond-miimon 100" in "/etc/network/interfaces" rather
than "options bonding mode=1 miimon=100" in
"/etc/modprobe.d/bonding.conf".
Why do you have "alias netdev-bond1 bonding" in
"/etc/modprobe.d/bonding.conf" rather than "alias bond1 bonding"?
You need "options bonding max_bonds=2" in
"/etc/modprobe.d/bonding.conf" because it defaults to "1".
More information about the ubuntu-users
mailing list