You are not logged in.
Pages: 1
Hello,
I am a almost newbie with arch, even if I have been using other distros for over a decade and a half. I am trying to set up network bonding of eth0 and wlan0, both connected to the same router. eth0 is a rtl8169, connected to a powerline adapter; wlan0 is a ath9k usb key (netgear WNA1100). Since both connections aren't very fast, and both are to the same network, I wanted to bind them to get a little more speed out of it.
I had both connections working with network manager, but to set up bonding I removed network manager and installed netcfg. Both connections are now working.
I've created profiles for both, from the examples in /etc/network.d/examples:
/etc/network.d/ethernet-dhcp
CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'
## for DHCPv6
#IP6='dhcp'
## for IPv6 autoconfiguration
IP6='stateless'/etc/network.d/wireless-wpa
CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID='ESSID'
## Uncomment if the supplied ESSID is hexadecimal
#ESSID_TYPE='hex'
KEY='XXXXXXXXXXXXXXXX'
IP='dhcp'
# Uncomment this if your ssid is hidden
#HIDDEN=yes.
I took also the example for bonding:
/etc/network.d/bonded
CONNECTION="bond"
DESCRIPTION='Bond Interface'
INTERFACE='bond0'
IP='static'
ADDR="10.0.0.1"
NETMASK="255.0.0.0"
SLAVE_INTERFACES=("eth0" "wlan0")
SKIPNOCARRIER="yes"From the network configuration page on the wiki I configured /etc/modprobe.d/bonding.conf:
options bonding mode=4
options bonding miimon=100If I check /proc/net/bonding/bond0, this is what I get:
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: transmit load balancing
Primary Slave: None
Currently Active Slave: None
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0Trying to run "sudo netcfg bonded", this is the output:
:: bonded up [BUSY]
> Interface bond0 already exists. [FAIL]And if I try ifenslave ("sudo ifenslave bond0 eth0 wlan0"), wlan0 keepts trying to reconnect, with "wlan0: deauthenticated from xxxxxxxxxxxxxxx (Reason: 15)", eth0 seems to connect, but network access is down and the router is no longer reachable. I have to take down bond0 with ifenslave, and restart eth0 with netcfg.
What basic error am I doing here, what can I do to troubleshoot this?
Thanks!
Offline
You can't bond eth0 and wlan0. You can bond eth0 and eth1 because they are the same media, but eth0, and wlan0 are different media.
About all you can do is be connected to a wireless router with wlan0, and carry the internet connection via iptables and ip4 nat forwarding.
Not all wireless adapters will do AP mode, so the reverse is not in all cases.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I'm not trying to do nat or anything similar - and I don't see where AP mode would help here.
I'll try to explain better - I have a router, to which I am connected using two channels - wlan0/802.11n and eth0/powerline. Both connections are in the same network.
My problem seems to be even before getting to having two connections over different media, as bond0 seems to be created at boot before netcfg is launched.
Offline
If you have a connection to the same router on both interfaces it will probably pick one over the other at times. Beyond that, there really isn't any bonding and the kernel won't bond the dissimilar interfaces. The wireless interface has a different management protocol than the wired ethernet interface. Your details above show that you do not have any bonding.
Your internet connection is only so fast anyway. All you can do is maybe speed up in house networking a little. If your wireless network is 802.11n, you will get about the same speed as a wired ethernet. Powerline wasn't ever that fast, unless they've improved it since the last time I even dared to read anything about it.
I think what you would have to do is have the router have the powerline and your wireless connection bonded somehow, but the wireless router acts as a switch. It pulls wireless clients and wired clients and puts them on the same network to go outbound to the internet.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
The idea is precisely to speed up networking inside the house, between the desktop and the NAS box, which is attached directly to the router. They are in the almost opposite extremes of the house, and 802.11n isn't so fast across three floors. Powerline 500 is fast - if on the same circuit, and if your wiring is new. In this house it is somewhat slow, giving me top speeds of +- 2Mbps, whereas in the previous house I lived in I would get 10-25 times as that, easily.
What I want to do is somewhat what you put in the last paragraph. I have the router and the NAS box close to the ADSL entrance, and I usually connect with laptops, phones, etc. in the same floor or directly above. The desktop is the one further away, and the one I wanted to speed up a little, by using the two connections, to give it a little extra bandwidth when writting/reading to and from the NAS. Both of the connections, powerline and wifi, are to the same router, so I was trying to use them "in parallel", to try and add the bandwidth.
Offline
Pages: 1