Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cant change MAC address
Date: Fri, 13 Nov 2020 00:00:49
Message-Id: 107023264.nniJfEyVGO@lenovo.localdomain
In Reply to: [gentoo-user] cant change MAC address by William Kenworthy
1 On Thursday, 12 November 2020 23:40:38 GMT William Kenworthy wrote:
2 > Hi,
3 >
4 > I am trying to change the mac address of a realtek wifi card using
5 > either mac_wlan0="<new MAC address>" in /etc/conf.d/net (which is in
6 > the handbook) or manually using ifconfig wlan0 hw ether <new MAC
7 > address> and its not working.
8
9 This is weird. Is the NIC identified by the kernel as wlan0, or have you
10 changed this somewhere with an alias. I don't know for sure if it would make
11 a difference, but just in case.
12
13 > Is there another way or am I stuck?
14 >
15 > BillK
16
17 You could use the iproute command, although if the above two options have not
18 worked I'm not sure this will work either:
19
20 rc-service -v net.wlan0 stop
21
22 ip link set wlan0 address 01:02:03:04:05:06
23
24 rc-service -v net.wlan0 start
25
26 ip link show wlan0

Attachments

File name MIME type
signature.asc application/pgp-signature