jbenz / opendlp

Automatically exported from code.google.com/p/opendlp
0 stars 0 forks source link

HOW-TO: Keep network interface at eth0 even when given new MAC address #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is not an issue specific to OpenDLP, but rather to Ubuntu.  Given that 
OpenDLP is being distributed as a VM, this information may be helpful to end 
users.

In Ubuntu, if the physical MAC address of the system has changed (can be done 
via Network Settings in VirtualBox), then the interface will no longer be on 
eth0.

To solve this issue and prevent it from occurring in the future when changing 
the MAC address, add the following line to /etc/rc.local:
rm /etc/udev/rules.d/70-persistent-net.rules

Original issue reported on code.google.com by nroe...@paysw.com on 25 Nov 2013 at 5:43

GoogleCodeExporter commented 8 years ago
Thanks for the tip!

I have had issues with this anytime I clone the virtual image, and reset the 
MAC address during the clone process.

If you don't want to delete the file on every boot, you can modify the file. In 
/etc/udev/rules.d/70-persistent-net.rules, the ATTR{address} option sets the 
MAC address. Its usually pretty easy to manually modify the file. 

Original comment by briana...@gmail.com on 14 Feb 2014 at 7:13