Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On arch Linux, I would like to mainly have eth0 (connected to bridged router) share the connection recieved from wlan0, Ive read tutorials but I'm not command sabby as other users are and don't completely understand. I would appreciate some help! Ty!

share|improve this question
please do not put '[solved]' in the question or title, accepting an answer is the correct way to show that a problem was solved. It changes the way the question is displayed on the main listing as well as putting the green check mark on the answer you have marked as correct. –  Zypher Sep 25 '10 at 0:14
I'd appreciate it if nobody messed with this page. If you have any problems, contact me. Thank you. –  dbdii407 Sep 25 '10 at 0:26
serverfault.com/faq Specifically the heading "Other people can edit my stuff" –  Zypher Sep 25 '10 at 0:45

2 Answers 2

up vote 9 down vote accepted


It is not possible to bridge between wireless (client a.k.a. station mode) and wired intefaces

According to this thread: http://kerneltrap.org/mailarchive/linux-ath5k-devel/2010/3/21/6871733

Setup NAT

One should set up NAT instead:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

Assigning an IP

Then you have to assign IP addresses to yourself:

ifconfig eth0 netmask up

Install dhcp daemon

Install a dhcp server and add the following text to its config file (in /etc/dhcpd.conf or something similar)

subnet netmask {
    option routers;
    option domain-name-servers the-ip-address-you-have-in-etc-resolv.conf;

Start dhcpd

Then start it /etc/init.d/dhcpd start

And that's it!

Only read below if you are interested in the non-working bridging setup

brctl addbr mybridge
brctl addif mybridge eth0
brctl addif mybridge wlan0

First you create a bridge interface I choose an arbitrary name mybridge then add intefaces to it.

You should request a new ip address (This is needed only if you want to get a valid IP for the bridging device itself):

dhclient -d mybridge
share|improve this answer
You don't actually need an IP address for the bridge interface for the bridging to work. –  Massimo Jun 18 '10 at 10:25
can't add wlan0 to bridge mybridge: Operation not supported –  dbdii407 Jun 18 '10 at 13:21
@Massimo: yes that is true. The valid IP is needed to acccess the net from the "bridging device". –  cstamas Jun 18 '10 at 17:27
I'm guessing that there's no way around the wlan0 issue? –  dbdii407 Jun 18 '10 at 17:45
@user46127: I updated the whole thing. bridging is not possible, but you can use nat instead. –  cstamas Jun 18 '10 at 17:52

To bridge wifi interface you may use iw tool to enable 4addr likewise:

# iw dev <wifiInterface> set 4addr on


# brctl addif <bridgename> <wifiInterface>
can't add <wifiInterface> to bridge <bridgename>: Operation not supported

# iw dev <wifiInterface> set 4addr on
# brctl addif <bridgename> <wifiInterface>

Now it should work. You can show bridges using:

# brctl show
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.