[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

WiFi adapter MAC address spoofing



Hi,

I would like to set a permanent MAC address spoofing for both the Ethernet and the Wife adapters.

I set the following in /etc/network/interfaces:

#################################################

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# Change the ethernet's MAC address
auto enp0s31f6
iface enp0s31f6 inet manual
hwaddress ether 0a:eb:71:c8:c8:2b

# Change the wifie adapter's MAC address
allow-hotplug wlp2s0
iface wlp2s0 inet manual
hwaddress ether 53:c0:43:08:2b:cc

#################################################

After rebooting, I run "ip addr" to check MAC addresses. The Ethernet's MAC address is changed, but not the WiFi adapter.

I also tried to set "allow-hotplug wlp2s0" to "auto wlp2s0". But then systemd (?) reported a problem with bring up networking.

Yours sincerely,

Xianwen


Reply to: