Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-27-2012, 06:48 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Creating a bridge interface eth0 to wlan0

My goal is to create a bridge interface eth0 to wlan0, this setting is being made, or trying to, in a thin client, the interface is a wireless adapter tp-link USB-Wireless. In the notebook did and everything worked, but when I go to the thin client goes wrong. In the figure below, I tried to create a bridge with only the wlan0 interface and gave the error saying that the operation is not supported, a solution that much research on the Internet sites outside Brazil was the command iw dev wlan0 4addr on establishing an interface virtual, but also does not work and a list of help, as it is in the second image. Following the steps from the mistakes of the thin clien:

root@maquina01-hp-t5740:/home/maquina01# brctl addbr br0
root@maquina01-hp-t5740:/home/maquina01# brctl addif br0 wlan0
can't add wlan0 to bridge br0: operation not supported

root@maquina01-hp-t5740:/home/maquina01# iw dev wlan0 inteface add wlan1 type monitor 4addr on

Usage: iw [options] command
--debug enable netlink debugging
--version show version (0.9.19)
event [-t] [-f]
phy <phyname> info
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
dev <devname> del
dev <devname> info
dev <devname> ibss join <SSID> <freq in MHz> [fixed-freq] [<fixed bssid>] [key d:0:abcde]
dev <devname> ibss leave
dev <devname> station dump
dev <devname> station set <MAC address> vlan <ifindex>
dev <devname> station set <MAC address> plink_action <open|block>
dev <devname> station del <MAC address>
dev <devname> station get <MAC address>
dev <devname> survey dump
dev <devname> mpath dump
dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
dev <devname> mpath del <MAC address>
dev <devname> mpath get <MAC address>
dev <devname> scan [-u] [freq <freq>*] [ssid <ssid>*|passive]
dev <devname> scan trigger [freq <freq>*] [ssid <ssid>*|passive]
dev <devname> scan dump [-u]
reg get
reg set <ISO/IEC 3166-1 alpha2>
dev <devname> disconnect
dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
dev <devname> link
dev <devname> get mesh_param <param>
phy <phyname> set netns <pid>
phy <phyname> set rts <rts threshold|off>
phy <phyname> set frag <fragmentation threshold|off>
dev <devname> set channel <channel> [HT20|HT40+|HT40-]
phy <phyname> set channel <channel> [HT20|HT40+|HT40-]
dev <devname> set freq <freq> [HT20|HT40+|HT40-]
phy <phyname> set freq <freq> [HT20|HT40+|HT40-]
phy <phyname> set name <new name>
dev <devname> set type <type>
dev <devname> set meshid <meshid>
dev <devname> set monitor <flag>*
dev <devname> set mesh_param <param> <value>

You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)

Do NOT screenscrape this tool, we don't consider its output stable."

Thanks for the help
Old 11-29-2012, 06:37 PM   #2
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 538

Rep: Reputation: 71
You can't do it. bridge-utils does not work like this. bridge-utils works on wired ethernet ports. Consider forwarding all traffic across the interfaces via the kernel. That's not without peril!

Last edited by mpapet; 11-29-2012 at 06:38 PM.
Old 11-30-2012, 01:40 PM   #3
Registered: Oct 2012
Location: France
Distribution: Debian / Fedora / Ubuntu / OpenBSD
Posts: 46

Rep: Reputation: Disabled
A short tutorial
Old 11-30-2012, 07:09 PM   #4
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 538

Rep: Reputation: 71
There's a reason bridge utils is failing, it's not supported. How the wireless NIC works, or doesn't in this case, is getting in the way. Can the wireless NIC run in master mode?

Last edited by mpapet; 11-30-2012 at 07:11 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
? how can i bridge wlan0 to eth0, Master_CAPS Linux - Newbie 1 03-24-2012 09:03 PM
Bad: Bridge eth0 and wlan0 on same laptop vinaypreet Linux - Networking 1 10-13-2011 08:57 PM
How do I bridge my eth0 and wlan0 connection on Ubuntu 11.04 Scarface758 Linux - Networking 1 07-24-2011 12:38 PM
Interface eth0 missing after messing around with bridge ariel106 Mandriva 3 12-01-2007 07:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration