View previous topic :: View next topic |
Author |
Message |
Jayson1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Apr 2007 Posts: 6
|
Posted: Mon Apr 16, 2007 2:07 am Post subject: Problem with bonding, works but not as it should |
|
|
Hi,
I have a small Linux Server , a wired XP Client, a wireless XP Client and a Wlan Router.
The Server is Connected via a Wlan card and a normal wired Lan card (don't ask why , bonding is set up with mode=1 and the primary Interface is eth0 (100mbit).
Quote: |
1 Sets an active-backup policy for fault tolerance. Transmissions are received and sent out via the first available bonded slave interface. Another bonded slave interface is only used if the active bonded slave interface fails.
|
"primary" takes care that eth0 is always the active slave when connected.
Code: |
$cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.0.3 (March 23, 2006)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:48:54:50:1f:aa
Slave Interface: rausb0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:18:f3:e5:9c:53
|
Setup 1:
Server: wired and 11b wlan connected
Client: wired
...sending Data from the Server to the Client, the Wlan Interface is not touched as long as the cable to the Server is connected.
...sending Data from the Client to the server, the same.
Tested while transferring a large file:
Full Speed, around ~ 70Mbit. If the cable is plugged out the Client only notices that the speed dropps to ~ 6mbit. Plugged in again the speed raises to ~ 70Mbit.
Everything working as it should.
Setup 2:
Server wired and 11b wlan connected
Client: 54g wlan
...sending Data from the Server to the Client, the Wlan Interface is not touched as long as the cable to the Server is connected. ~ 20mbit with cable, ~6 mbit without -> Ok
...sending Data from the Client to the server, the Data is split 50/50 on the lan and Wlan Interface at the Server! Like Loadbalancing?! only ~ 8mbit with cable!
I've monitored this using atop at the Server, why is the sended Data by the Wlan Client splitted? According to the bonding Setup it should all got through the 100mbit Interface on the Server. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
richard.scott Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Tue Apr 17, 2007 11:08 am Post subject: |
|
|
Hi,
Can you post your network config?
Rich. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jayson1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Apr 2007 Posts: 6
|
Posted: Tue Apr 17, 2007 2:17 pm Post subject: |
|
|
/etc/conf.d/net at the Server
Quote: |
config_eth0=( "null" ) # to avoid dhcp scanning at bootup
config_rausb0=( "null" )
slaves_bond0="eth0 rausb0"
config_bond0=( "192.168.111.70 netmask 255.255.255.0 brd 192.168.111.255" )
routes_bond0=( "default gw 192.168.111.250" )
|
I can't post ifconfig right now, only bond0 has an ip adress and the mac on all devices is set to the mac of eth0.
I don't get it why this only happens with a wireless client, not with a wired.[/quote] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
richard.scott Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Tue Apr 17, 2007 2:41 pm Post subject: |
|
|
From my (limited) understanding of bonding I believe that there is no way from the outside (i.e. the client side) to specify a preferred incoming nic.
Isn't this how bonding should work i.e. each adapter takes its share of the connection? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jayson1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Apr 2007 Posts: 6
|
Posted: Tue Apr 17, 2007 8:26 pm Post subject: |
|
|
Well, but the wired Lan Clients only send to eth0 on the Server if a cable is plugged in, as intended because eth0 is the primary Bonding Slave. However the wireless Clients are always sending to eth0 AND rausb0 (wireless card).....
Quote: | there is no way from the outside (i.e. the client side) to specify a preferred incoming nic. |
It seems so, maybe its the wlan router who keeps traffic on the wired lan side if destination Mac is found there, but on the wireless side he doesn't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
richard.scott Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Tue Apr 17, 2007 9:29 pm Post subject: |
|
|
What happens if you unplug your wireless usb device in the server?
Does all wireless clients connect via the wire ok? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|