OpenWrt Forum Archive

Topic: Mac Address Cloning in 8.09

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am using a Nanostation flush with OpenWrt 8.09.2. I followed the instructions on:
http://wiki.openwrt.org/oldwiki/openwrt … ss.cloning
to change the mac address of the interface for the wifi ap.
Although it shows the mac address has been changed, the real hardware mac address remain the same when I using network stumbler to catch the wifi signal.
The config interface for wan is like this:
option 'macaddr' '00:**:**:**:**:b5"

I searched some threads says about changing macaddr to hwaddr, is this feasible?

Help please, thanks.

Here is more detail:
When we do ifconfig, we find a device which named as wifi0 but it is not an Ethernet device. Therefore, when we tried to change the mac address with OpenWRT config file, the real mac address remained unchanged. We can observe the AP as ‘fake’ with Network Stumbler, which is a device to pick up wifi signal.
Also, could anyone explain while there is ath0 and wifi0 shown, and what are their differences?

Thanks,

We found a file "address" under "sys/devices/virtual/net/wifi0", it stores the mac address for the wifi0. While we cannot use either ifconfig or options in config file to change the mac address, we think about change the content of this file directly.
But the problem is that we cannot modify the "address" file, not even when we chmod all the files and the directories to have write access, can anyone offer their help please?

After a bit of dig in, I think it is best for me to summarize my problem so people can understand me clearly:

The aim for me is to have mac address cloning enable for wireless adapter on Nanostation loco 2.

First thing I do is to use default Luci GUI to set the interface for Device wifi0 to be WAN and change the Mac Address of the WAN interface. However, this only changes the mac address of Device ath0. Also, it shows that interface WAN is connected with Device ath0 in the interface status page in Luci.

Then I go into the config file and tried to change the network file under etc/config and add the macaddr option for the WAN interface, it didn't work either.

And as I dig in deeper, I found a file "address" under "sys/devices/virtual/net/wifi0", I think that is the place stores the mac address for the wifi0, but I cann't change the content of the file even I change the access to writable as the vi shows cannot read all content.

So, Here comes all the questions:
1. why Wan is shown to be attached to ath0 even if I assigned it to wifi0? (I tried change wifi0 into ath0 in the config and the wireless didn't work)
2. I think nvram is not supported in 8.09, then how can I change the content of the files under "sys/devices/virtual/net/wifi0".

Thanks for any help offered

The discussion might have continued from here.