I’m trying to change the MAC address of one ethernet interface, but without success.
I’m typing this command on CLI:
vyos@vyos# set interfaces ethernet eth0 mac 00:01:02:03:04:05
When I reboot the router, the MAC of the NIC come back to default.
I already tried to change the config.boot file, and the “interface” file inside /etc/network but both method without success.
The way I got was:
and add this line inside it
ifconfig eth0 hw ether 00:01:02:03:04:05
But I didn’t want to use this method.
Does anyone know how to change the mac address in the right way?