LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-06-2015, 06:38 PM   #1
VolkHe
Member
 
Registered: Oct 2014
Posts: 33

Rep: Reputation: Disabled
Change mac address for wlan0 without using macchanger software?


I was not sure if this is the correct subforum or it would be better suited in Networking section, please move mods and sorry if incorrect.

Question
I have running Raspbian on my Raspberry Pi

I have two usb wifi dongles that both work and connect to my router when testing.

- Edimax EW-7811UN
- Adafruit Miniature WiFi (802.11b/g/n)

However when I try to change the Mac Address's of either of these usb devices when only one is plugged in and in use at one time I cannot do it as the effects seem to not take place.

I have tried using cmd
Code:
    ifconfig wlan0 down
    ifconfig wlan0 hw ether 00:00:11:11:00:00
    ifconfig wlan0 up
and also editing /etc/network/interfaces file wlan0 entry
Code:
    iface wlan0 inet static
            hwaddress ether 01:01:01:01:01:01
            address 192.168.1.100
            netmask 255.255.255.0



After doing this and running ifconfig I can see that either of the two USB'S device has the same MAC.

I have also tried rebooting the device but the mac address is the same.

I have heard there is a package called macchanger but I would like to do this without it, how could I go about doing this?
 
Old 09-06-2015, 10:26 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Not all network interfaces support altering the MAC address.

Last edited by mpapet; 09-06-2015 at 10:28 PM.
 
Old 09-08-2015, 08:47 AM   #3
VolkHe
Member
 
Registered: Oct 2014
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
Not all network interfaces support altering the MAC address.
Thats true, but both of these adapaters can have there mac changed with other distros, including windows too...
 
  


Reply



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
I Cannot connect after Mac Change with MacChanger imayneed Linux - Software 20 09-05-2017 04:25 PM
change mac address baby_ Linux - Networking 1 12-30-2009 08:26 AM
how to change MAC address cain_eve Linux - Software 11 02-05-2009 01:52 PM
MAC address change? w9q Linux - Networking 3 09-10-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:55 PM.

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