On Thursday, 12 November 2020 23:40:38 GMT William Kenworthy wrote:
> Hi,
> 
>     I am trying to change the mac address of a realtek wifi card using
> either mac_wlan0="<new MAC address>"  in /etc/conf.d/net (which is in
> the handbook) or manually using ifconfig wlan0 hw ether  <new MAC
> address> and its not working. 

This is weird.  Is the NIC identified by the kernel as wlan0, or have you 
changed this somewhere with an alias.  I don't know for sure if it would make 
a difference, but just in case.

> Is there another way or am I stuck?
> 
> BillK

You could use the iproute command, although if the above two options have not 
worked I'm not sure this will work either:

rc-service -v net.wlan0 stop

ip link set wlan0 address 01:02:03:04:05:06

rc-service -v net.wlan0 start

ip link show wlan0

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to