Forum Thread: Kali Linux How to Bridge Two Wireless Connections wlan1 wlan0?

Can i set up a bridge between two wireless interfaces (wlan1,wlan0)?The wlan1 is a wireless adapter tp link 722n. I am using Kali Linux 2.0.I tried using the brctl command but i get "can't add wlan1 to bridge br0: Invalid argument"

8 Responses

Please state clearly the syntax that you used. How can anyone help you if you aren't providing enough information?

Generally speaking, to create a bridge with bridge-utils (brctl), type:
brctl addbr <bridge_name>
Then to add an interface to that bridge, type:
brctl addif <bridge_name> <interface>
To see all of your bridges and their interfaces, type:
brctl show

(NB: you will lose any outside connections of the interfaces you bridge, meaning they will not provide you with an IP address and internet connectivity)

TRT

root@kali:~#ifconfig
br0 Link encap:Ethernet HWaddr 9a:18:1e:4e:17:16
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr c4:54:44:3c:9a:f3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:875 errors:0 dropped:0 overruns:0 frame:0
TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:95512 (93.2 KiB) TX bytes:95512 (93.2 KiB)

wlan0 Link encap:Ethernet HWaddr 9e:38:85:03:d8:56
inet addr:192.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9c38:85ff:fe03:d856/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:215589 errors:0 dropped:0 overruns:0 frame:0
TX packets:226779 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:102096009 (97.3 MiB) TX bytes:105115597 (100.2 MiB)

root@kali:~#brctl addif br0 wlan0
can't add wlan0 to bridge br0: Operation not supported
root@kali:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000000000000 no
im i doing something wrong?can you help me?

Is there any way to monitor (monitor mode)with wlan1 and provide Internet access with wlan0?

Yes, that is possible. If that is what you are bridging them for then there is really no need. Just use both interfaces separately for whatever you need.

If you want to browse the internet while cracking a WPS pin with Reaver, go ahead and use one interface with Monitor mode and leave the other one for your internet access. Unless you specifically require bridging, it is not a must.

TRT

yes you can,

ifconfig "wlan0" down

iwconfig "wlan0" mode monitor

ifconfig "wlan0" up

will do i think

byebyte!

Thank you for responding. I thing i have to explain it better. I am using airbase-ng and clone an AP. Then i want to give internet access to the cloned AP.

I see. For that, you will need a third interface with an internet connection. There are currently two modes involved here: monitor (airbase-ng) and master (clone ap).

To access the internet, you need an interface with managed mode (i.e. the normal mode of your interface when it is just connected to a network).

An example of why you would need another interface would be routers. They accept an internet connection from your ISP with one interface (managed mode) and then they use another interface (master mode) to provide you with an access point to connect to.

Sorry, but this is an inconvenience that cannot be escaped.

TRT

the command : brctl addif <bridge_name> <interface>

gives error as : can't add wlan0 to bridge evil: Operation not supported

Share Your Thoughts

  • Hot
  • Active