Centiq Blog

Centiq Blog

Jul 09
2009

Cloning SuSE Linux Enterprise Server - Network settings

Posted by: Steve Stringer in Infrastructure

Tagged in: Support

Steve Stringer

If you ever cloned an installation of SLES (SuSE Linux Enterprise Server) you may find on the systems you have copied your image to that your active network connections do not start at eth0.  This is because SUSE uses a udev rule to create persistent binding to eth interfaces.

You can fix this situation with the following steps.

Remove all existing Ethernet configuration files from the system configuration.

 

rm /etc/sysconfig/network/ifcfg-eth*

 

Then remove all the lines that start with the string "SUBSYSTEM" from the appropriate udev configuration file.

 

sed -i '/^SUBSYSTEM/d' /etc/udev/rules.d/30-net_persistent_names.rules

 

Then reboot the system.  As the system reboots udev will create new rules using the lowest available eth addresses (which should now be eth0).  You can then configure the network devices as normal.

In future you can avoid this situation by clearing the udev file and the relevant system configuration files prior to cloning. 

Always remember to back up any system files before deleting or editing them :)

Hits: 3723
Trackback(0)
Comments (0)Add Comment

Write comment

security code
Enter the displayed characters


busy

Request more information

Want us to contact you right now?

Leave your details and we'll call you Immediately during work hours.

Name: *
Company:
Phone: *

Bloggers

Emily MalbonEmily Malbon:
Helpdesk and Support

Rebecca PritchardRebecca Pritchard:
Project Management

Robin WebsterRobin Webster:
UNIX

Steven CalvertSteven Calvert:
Storage

Steve StringerSteve Stringer:
Blade and SAP BWA

Glyn HeathGlyn Heath:
IT Industry

Tags

 Centiq Technical Wiki Site  Centiq is a 2012 IBM Beacon award winner and IBM Premier Business partner specialising in System x, Power and SAP BWA smarter_monitiq_logo v2 preferred partner_2012_solid_blue_vert_png accredit_uk_logo v2