Skip to contentSkip to conversation

Channel Bonding

DISCUSSION Ross Clarke 2 participants 3 messages Aug 29, 2003

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am currently trying to get channel bonding working on two of my linux machines using a standard 100mbit CNET switch. I first started with my desktop which runs 2.6.0-test4, I managed to get everything working using 2 NICS (1x 3com 905b and 1x RT8139c). Everything worked 100%. I then done the exact same setup on my ftp server which uses 2 tulip based network cards and kernel 2.4.20 with the gentoo linux patches, however when I ping the ftp server I get a duplicate on every packet, rendering the box useless. I then upgraded the ftp server to 2.6.0-test4 and recieved the exact same result. Is there something im missing, is it perhaps a NIC problem? I would really like to get this working. Does anybody have some tips or experiences they could share?

Thanks,
Ross
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla Thunderbird - http://enigmail.mozdev.org

iD8DBQE/TqRt1+7fkD/L8TgRAkjlAJ4/lxueRHxzpKBw1Hd28ehKqYz+dQCfXffh GlU2eqnAtH4/PZywjNELvu4=
=oxZD
-----END PGP SIGNATURE-----

#1 lore raw

This may be a result of your switch.
Some switches cannot handle multiple instaces of the same mac address. If your switch is capable of creating vlans, create 2 vlans and put one of the nics on each channel.

My standard bond configuration looks like this using redhat:
in /etc/modules.conf
alias eth0 3c59x
alias eth1 3c59x
alias bond0 bonding

/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.11
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

Hope this helps.

Quoted 25 lines · Ross Clarke

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am currently trying to get channel bonding working on two of my linux machines using a standard 100mbit CNET switch. I first started with my desktop which runs 2.6.0-test4, I managed to get everything working using 2 NICS (1x 3com 905b and 1x RT8139c). Everything worked 100%. I then done the exact same setup on my ftp server which uses 2 tulip based network cards and kernel 2.4.20 with the gentoo linux patches, however when I ping the ftp server I get a duplicate on every packet, rendering the box useless. I then upgraded the ftp server to 2.6.0-test4 and recieved the exact same result. Is there something im missing, is it perhaps a NIC problem? I would really like to get this working. Does anybody have some tips or experiences they could share?

Thanks,
Ross
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla Thunderbird - http://enigmail.mozdev.org

iD8DBQE/TqRt1+7fkD/L8TgRAkjlAJ4/lxueRHxzpKBw1Hd28ehKqYz+dQCfXffh GlU2eqnAtH4/PZywjNELvu4=
=oxZD
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Jeff Largent                   ImageLinks, Inc.
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the response. I had suspicions that my switch may be the problem, tho it works fine on my desktop machine. The documentation in the kernel source tree said for bonding mode 5 I wouldn't need any special switch, however, in mode 5 I dont get any response. Any idea of whether using two switches would make a difference, with one NIC per switch? Ill try that later when people are sleeping and wont be using any files.

thanks
Ross

Jeff Largent wrote:

| This may be a result of your switch.
| Some switches cannot handle multiple instaces of the same
| mac address.  If your switch is capable of creating vlans,
| create 2 vlans and put one of the nics on each channel.
|
| My standard bond configuration looks like this using redhat:
| in /etc/modules.conf
| alias eth0 3c59x
| alias eth1 3c59x
| alias bond0 bonding
|
| /etc/sysconfig/network-scripts/ifcfg-bond0
| DEVICE=bond0
| ONBOOT=yes
| BOOTPROTO=static
| IPADDR=192.168.1.11
| NETMASK=255.255.255.0
| GATEWAY=192.168.1.1
|
| /etc/sysconfig/network-scripts/ifcfg-eth0
| DEVICE=eth0
| USERCTL=no
| ONBOOT=yes
| MASTER=bond0
| SLAVE=yes
| BOOTPROTO=none
|
| /etc/sysconfig/network-scripts/ifcfg-eth1
| DEVICE=eth1
| USERCTL=no
| ONBOOT=yes
| MASTER=bond0
| SLAVE=yes
| BOOTPROTO=none
|
|
| Hope this helps.
|
|
| Ross Clarke wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> Hi,
|>
|> I am currently trying to get channel bonding working on two of my linux
|> machines using a standard 100mbit CNET switch. I first started with my
|> desktop which runs 2.6.0-test4, I managed to get everything working
|> using 2 NICS (1x 3com 905b and 1x RT8139c). Everything worked 100%. I
|> then done the exact same setup on my ftp server which uses 2 tulip based
|> network cards and kernel 2.4.20 with the gentoo linux patches, however
|> when I ping the ftp server I get a duplicate on every packet, rendering
|> the box useless. I then upgraded the ftp server to 2.6.0-test4 and
|> recieved the exact same result. Is there something im missing, is it
|> perhaps a NIC problem? I would really like to get this working. Does
|> anybody have some tips or experiences they could share?
|>
|> Thanks,
|> Ross
|> -----BEGIN PGP SIGNATURE-----
|> Version: GnuPG v1.2.2 (GNU/Linux)
|> Comment: Using GnuPG with Mozilla Thunderbird - http://enigmail.mozdev.org
|>
|> iD8DBQE/TqRt1+7fkD/L8TgRAkjlAJ4/lxueRHxzpKBw1Hd28ehKqYz+dQCfXffh
|> GlU2eqnAtH4/PZywjNELvu4=
|> =oxZD
|> -----END PGP SIGNATURE-----
|>
|>
|> -
|> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
|> the body of a message to [email protected]
|> More majordomo info at  http://vger.kernel.org/majordomo-info.html
|>
|>
|
| --
| Jeff Largent                   ImageLinks, Inc.
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla Thunderbird - http://enigmail.mozdev.org

iD8DBQE/T4t/1+7fkD/L8TgRAnwzAJ9FQM9HwY5M2rWVfs6wRjke6shXxACffllj oz0qFAH33WGxwwzWEa21T50=
=m4qE
-----END PGP SIGNATURE-----