4
2
My laptop have an atheros WiFi card, I created 2 virtual interfaces on top of it, with following commands:
- iw dev wlan0 interface add vlan0 type station
- iw dev wlan0 interface add vlan1 type station
I changed their mac addresses, as:
- macchanger -e vlan0
- machhanger -e vlan1
and then I turned them on,:
- ifconfig vlan0 up
- ifconfig vlan1 up
I want to connect both these interfaces to 2 different networks. Lets say I have SSID1 and SSID2 broadcast by 2 different APs.
I execute below command to do that:
- iw dev vlan1 connect SSID1
- iw dev vlan2 connect SSID2
The problem is, vlan1 is able to connect but vlan2 could not. In order to find an answer I traced the frames in the air, I see when vlan2 is asked to connect it sends probe requests and get probe responses from SSID2 but it never sends association request.
However, if I try to connect both vlan1 and vlan2 to one SSID - SSID1/2 both of them are able to connect and associate.
The question is, why 2 different virtual interfaces are not able to connect to 2 different networks?
Right said. I tried to connect to 2 different APs that are operating on same channel and I got success. By this 2 virtual interfaces were on 2 different networks but on same channel. – Dheryta Jaisinghani – 2015-09-25T06:41:59.523