Monthly Archives: September 2013

Fixing eth0 in cloned SLES 11 VMware

After cloning SUSE Linux Enterprise Server in VMware its network interface card is assigned to eth1 as opposed to eth0. Thus, no  remote control is possible.

To fix the issue follow those steps:

  1. Navigate to /etc/udev/rules.d
    cd /etc/udev/rules.d
  2. edit the following file: 70-persistent-net.rules
    vim 70-persistent-net.rules
  3. Comment out the second interface(eth1) and replace the eth0’s mac address with eth1:Original file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:cc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

    Modified (fixed) file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

  4. Save the file and exit it.
  5. Reboot the machine and you should be all set.