Discussion:
[Madwifi-users] Can't change MAC address
Raimund Eimann
2007-06-01 16:27:55 UTC
Permalink
Hi,

I'm using a Proxim 8470-WD card and would like to change its MAC address.
However, all attemps so far failed:

# ifconfig ath5 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument

# ifconfig wifi0 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument

However,
# ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff

works just fine, so the syntax is correct.

What am I doing wrong here?

Cheers,
Raimund
Ron Dippold
2007-06-01 17:34:15 UTC
Permalink
First, make sure the vap is down (ifconfig athx down) before doing this. Next, you can only do this on created vaps (athx), not on the card device itself (wifi0).

Just to verify, I just tested with four master vaps on one card and an adhoc vap on another card, and ifconfig-ing the mac address worked fine as long as I took the cards down first.

If it still doesn't work we'd need more info, like what wlanconfig command you used to create it.

Ron
Post by Raimund Eimann
I'm using a Proxim 8470-WD card and would like to change its MAC address.
# ifconfig ath5 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument
# ifconfig wifi0 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument
However,
# ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff
works just fine, so the syntax is correct.
What am I doing wrong here?
Raimund Eimann
2007-06-01 18:27:37 UTC
Permalink
Hi,

thanks for the comments.

I solved the problem in the meantime by compiling a little program called
macchanger. With macchanger there's no problem with changing the address of
ath5 (after ifconfig ath5 down, of course).

The wlanconfig command I used to create the vap is:

wlanconfig ath create wlandev wifi0 wlanmode monitor

Cheers,
Raimund
Post by Ron Dippold
First, make sure the vap is down (ifconfig athx down) before doing this.
Next, you can only do this on created vaps (athx), not on the card device
itself (wifi0).
Just to verify, I just tested with four master vaps on one card and an
adhoc vap on another card, and ifconfig-ing the mac address worked fine as
long as I took the cards down first.
If it still doesn't work we'd need more info, like what wlanconfig command
you used to create it.
Ron
Post by Raimund Eimann
I'm using a Proxim 8470-WD card and would like to change its MAC address.
# ifconfig ath5 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument
# ifconfig wifi0 hw ether aa:bb:cc:dd:ee:ff
SIOCSIFHWADDR: Invalid argument
However,
# ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff
works just fine, so the syntax is correct.
What am I doing wrong here?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Madwifi-users mailing list
https://lists.sourceforge.net/lists/listinfo/madwifi-users
Loading...