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.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s