Ubuntu beginner trying to improve Linux / Ubuntu skills.
I've setup a new VM and trying to configure a static IP.
When I set a new static IP on ubuntu (/etc/network/interfaces)I have to reset it's MAC address in order for it to work (restarting the network service won't work). Is there a way to remove MAC address association like in CentoOS ?
Thanks and regards, J
/etc/network/interfaces
with a static IP address and reboot./etc/network/interfaces
takes it out of the realm of NetworkManager. I haven't tried it, but the following sequence may work: down the interface, stop NetworkManager (which still manages the interface), add the stanza to/etc/network/interfaces
, start Network Manager (now no longer attempts to manage the interface), up the interface.sudo systemctl restart network
? Or justifdown
,ip addr flush dev
,ifup
?