PDA

View Full Version : [ubuntu] Does /etc/network/interfaces actually change the MAC address of wlan0?



JamesParnell
November 16th, 2009, 10:15 AM
does it? or does it just clutter up the file more? if not, how do i actually change it, and is there a way of finding out if it has worked?

mbzn
November 16th, 2009, 10:51 AM
Not sure about your way, Could work?

Here's the way i know

ifconfig eth0 down hw ether 00:00:00:00:00:01

ifconfig eth0 up

Just change eth0 to the device you need to change.
Hope this helps

JamesParnell
November 16th, 2009, 10:56 AM
thanks for that, i remembe3r being told the terminal way before, but i forgot it, thanks for the command.

ok when i do it (as i cant get acces to wifi i will have to read off the moniutewr and type it out) i get this message:

SIOCSIFFLAGS: Permission denied
SIOCSIFHWADDR: Operation not permitted.


how can i get around that

t0p
November 16th, 2009, 10:59 AM
There's also a command-line program, macchanger. I don't know if it's in the repositories though, you may have to google it.

Once you've used macchanger, or the ifconfig commands in the previous post, you can check if the mac number has changed by typing into the terminal


ifconfig

It will list your internet interfaces, with mac numbers etc.

Also, note that this doesn't actually change your mac number permanently, it just spoofs it. The mac number will return to normal next session.

t0p
November 16th, 2009, 11:01 AM
thanks for that, i remembe3r being told the terminal way before, but i forgot it, thanks for the command.

ok when i do it (as i cant get acces to wifi i will have to read off the moniutewr and type it out) i get this message:

SIOCSIFFLAGS: Permission denied
SIOCSIFHWADDR: Operation not permitted.


how can i get around that

Hmm, permissions issue. Prefix the commands with 'sudo'.

JamesParnell
November 16th, 2009, 11:03 AM
ah yes, our friend sudo. thanks