My router can do port-forwarding based on MAC addresses. That is, a specific MAC will get a specific IP, for which I can configure a set of ports to be forwarded. In order to easily change that set of ports, I'd like to have different connections in the Network manager.
How do I change the MAC address for a network connection?
Best Answer
First, go to the networking indicator and select "Edit connection" to configure a new connection:
Click 'add' and choose a name for the spoofed MAC network connection.
After selecting your interface "eth0" in the top dropdown, you can simply choose any MAC address you like:
And after connecting to it, you'll be using your new MAC address.
Running
ip link ls
will show you the new interface, including it's spoofed MAC:And now you can easily switch MAC-addresses by connecting to one of the new connections.