Resetting eth naming?
I'm running ubuntu gutsy under vmware and here is the situation I'm facing under moving the virtual machine to a different host I was unable to use eth0 on the virtual machine. It's somehow moved to eth1 now!
For now I have 2 interfaces attached to the virtual machine and here's what dmesg tells: Code:
... Any ideas how to resurrect eth0? TIA. |
What does your /etc/network/interfaces say?
|
Thanks for your reply.
Both interfaces are assigned ips by dhcp: Code:
auto eth1 Now, I've moved the VM under another host OS and guess what! eth1 and eth2 are not available anymore. I get eth3 and eth4 instead. Still no clue (don't consider running "grep "eth1" /**" and looking through the numerous results an option). |
Ok, figured this out long ago. In case anyone faces this issue.
Just remove problematic interfaces from /etc/udev/rules.d/70-persistent-net.rules and that's it. |
/etc/udev/rules.d/75-network-devices.rules is where you can map interface names to NIC's by using their MAC address. Here is the format.
KERNEL=="eth?", ATTR{address}=="<MAC ADDY FOR eth0>", NAME="eth0" KERNEL=="eth?", ATTR{address}=="<MAC ADDY FOR eth1>", NAME="eth1" |
All times are GMT -5. The time now is 10:53 PM. |