


All of which is painful as you have to change it to switch to a different network. It's also extremely painful in that you have to hard-code connection data into wpa2-supplicant - wireless network name, password (in plain text), sometimes even the wifi band and the channel number. There's a few reasons for this, mostly in that configuring wireless via /etc/network/interfaces will be painful if you switch wifi networks as you have to edit the configuration and reload it manually (and sometimes it won't load until you reboot). And normally, /etc/network/interfaces is left alone except for the loopback interface in favor of Network Manager managing your connections. Sadly, it also makes some headaches for different types of connections. I have been looking at tutorials online though I can't seem to get stuff right, and my computer even started acting very strangely a few times afterwards.įirst, the guide you linked to. I would like to change the mac address of all of my interfaces (enp3s0, wlp2s0) (lo is loopback so no need there), but I am unfamiliar with the commands in the /etc/network/interfaces file. I get the following output # interfaces(5) file used by ifup(8) and ifdown(8)Īnd when I do ifconfig on my ubuntu, I get back 3 different interfaces: Now when I use the following code: cat /etc/network/interfaces

Source: Changing Your MAC Address/Linux -WikiBooks Stanza, e.g., right after the gateway line) so that the MAC address is On Debian, Ubuntu, and similar systems, place the following in theĪppropriate section of /etc/network/interfaces (within an iface So I found this great article online explaining how to change a Mac Address permanently through the /etc/network/interfaces file on my Ubuntu. How might I be able to specifically change the Mac Address of the enp3s0 and wlp2s0 interfaces through the /etc/network/interfaces file? What code would I have to include inside? I have been trying for some time now without success sadly enough.
