I am currently working on a project where I would like to be using a single TP-link wireless adapter and split it into multiple clients. What I've done so far; I was able to create multiple virtual wlan0.1's using iw I've changed their MAC with macchanger... I was able to connect one of the interfaces to an AP using wpa_supplicant then dhclient for getting the IP. I can run wpa_supplicant again with the secondary virtualized wifi interface but I can't get IP address. Any suggestions? Regards
Is your WiFi adapter properly capable of multiple managed interfaces? Check the "valid interface combinations" line in
Don't use a MAC changer, set the MAC when you add the interface (
iw dev <devname> interface add ... addr <mac-addr>).
Multiple interfaces with different IP addresses are a pain in the neck to handle, because every program you use must be able to bind to a single interface, and even then there are surprises, so make sure you run both
wpa_supplicantonly on the interface that needs it.
If it still doesn't work, please edit question with the exact commands you used (for all interfaces).