Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing wlan0 MAC based on ESSID
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Sun Jun 09, 2013 3:52 pm    Post subject: Changing wlan0 MAC based on ESSID Reply with quote

Is it possible to change the MAC address of a wireless card based on which network it is being associated with?

Right now I have:

Code:
mac_wlan0="random-samekind"


I tried with changing the wlan0 to the ESSID which did not work. Is there some magic that can be done to make this happen?
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7250
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 09, 2013 5:03 pm    Post subject: Reply with quote

ifconfig can change MAC addresses, never tried it on wireless though.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Sun Jun 09, 2013 5:28 pm    Post subject: Reply with quote

Yeah, it can change the MAC address, but I was hoping there was an easy way that the net.wlan0 runscript would change it as needed based on the ESSID it's connecting to using /etc/conf.d/net.

If not, oh well. Just wasn't sure if there is as I did not see anything in the examples or on Google.
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum