/ Published in: Bash
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
--8<--
Assuming you're not juggling multiple network interfaces and want the
default interface to remain eth0, the solution is to edit
/etc/udev/rules.d/rules.d/z25_persistent-net.rules to find the line
for eth0, replace the original MAC address with the new one and then
remove the newly-added line for eth1.
An even simpler solution is just to delete
/etc/udev/rules.d/rules.d/z25_persistent-net.rules and then regenerate
it by stopping and restarting udev:
rm /etc/udev/rules.d/rules.d/z25_persistent-net.rules
/etc/init.d/udev stop
/etc/init.d/udev start
--8<--
--8<--
Look at the file /etc/udev/persistent-net-generator.rules. There is
already a rule to ignore VMware interfaces from generating a
persistent rule. Just add after the VMware rule
# ignore VirtualBox virtual interfaces
ATTR{address}=="08:00:27:*", GOTO="persistent_net_generator_end"
Finally remove /etc/udev/z25_persistent-net.rules. Don't change
/etc/network/interfaces. Reboot your guest and the interface should be
well-detected.
--8<--
URL: http://forums.virtualbox.org/viewtopic.php?p=5762&sid=2eaa2393413139e9b88d5563d77f2307
Comments
 Subscribe to comments
                    Subscribe to comments
                
                