SuSE 9.1 network interface naming schema problem
![](https://seccdn.libravatar.org/avatar/b85551ec42f0bcfa518851c08cb0ad3b.jpg?s=120&d=mm&r=g)
Hallo, for several similar machines I used to autoinstall just one machine and copy the installed system to the others. For some reasons this is in my environment less work than to autoinstall every machine. In 9.1 the naming schema for the first ethernet device changed from "eth0" to "eth-id-<MAC address>". Since the MAC address is unique for each machine, the copied systems don't recognize their network interface. Does anybody know a possibility to restore the old naming schema or correct the problem maybe by running a post-install script? Bye, Frank Schütte fschuett@gymnasium-himmelsthuer.de
![](https://seccdn.libravatar.org/avatar/0344e6956fb6ffaa642b22ec1db87236.jpg?s=120&d=mm&r=g)
The old naming schema can be restored manually. Just re-name the files. I cannot recall if you have to edit anything in /etc/sysconfig/hardware (files which point to hardware addresses, etc.) or edit /etc/modules.conf. It's been a while since I did it, but now mine are ifcfg-eth0 and ifcfg-eth1. --Jonathon Robison On Wed, 2004-09-15 at 12:44 +0200, fschuett wrote:
Hallo,
for several similar machines I used to autoinstall just one machine and copy the installed system to the others. For some reasons this is in my environment less work than to autoinstall every machine.
In 9.1 the naming schema for the first ethernet device changed from "eth0" to "eth-id-<MAC address>". Since the MAC address is unique for each machine, the copied systems don't recognize their network interface.
Does anybody know a possibility to restore the old naming schema or correct the problem maybe by running a post-install script?
Bye, Frank Schütte fschuett@gymnasium-himmelsthuer.de
![](https://seccdn.libravatar.org/avatar/f655b8e89cb96a76b5235fdd76efc335.jpg?s=120&d=mm&r=g)
Hi, We just disliked the mac address naming convention so did this in our post_install script (and a few other things): # Get IP address from env IP=`/sbin/ifconfig eth0 | grep inet | sed -e 's/^[^:]*://' -e 's/ .*$//'` echo $IP # Remove the eth0 file with the mac address stuck on the end of it oldnetfile=`ls /etc/sysconfig/network/ifcfg-eth*` echo $oldnetfile rm -f $oldnetfile # Create new network config file with simple name netfile="/etc/sysconfig/network/ifcfg-eth0" cat > $netfile <<EOF BOOTPROTO='static' IPADDR='$IP' NETMASK='255.255.255.0' STARTMODE='onboot' ONBOOT=yes EOF # Add in some sensible default routes echo 'default BLAH - -' > /etc/sysconfig/network/routes echo 'BLAH - 255.255.255.0 eth0' >> /etc/sysconfig/network/routes echo 'BLAH - 255.255.255.0 eth0' >> /etc/sysconfig/network/routes # Sort out resolv.conf cat > /etc/resolv.conf <<EOF nameserver BLAH nameserver BLAH search BLAH BLAH EOF # Note: amazingly this is trashed, somehow?, and has to be done # again by the boot script that we are about to wget # Get the "real" post install scripts as the post install env of autoyast # is a bit odd. use run level 5 and run it last (S99). Logging output # in /root/boot_suse91.log of script run with -x option. If you want to see the rest of the scripts we use checkout: http://www.tcm.phy.cam.ac.uk/~mr349/suse/autoyast.html Mike Rose On Wed, 15 Sep 2004, Jonathon M. Robison wrote:
The old naming schema can be restored manually. Just re-name the files. I cannot recall if you have to edit anything in /etc/sysconfig/hardware (files which point to hardware addresses, etc.) or edit /etc/modules.conf. It's been a while since I did it, but now mine are ifcfg-eth0 and ifcfg-eth1.
--Jonathon Robison
On Wed, 2004-09-15 at 12:44 +0200, fschuett wrote:
Hallo,
for several similar machines I used to autoinstall just one machine and copy the installed system to the others. For some reasons this is in my environment less work than to autoinstall every machine.
In 9.1 the naming schema for the first ethernet device changed from "eth0" to "eth-id-<MAC address>". Since the MAC address is unique for each machine, the copied systems don't recognize their network interface.
Does anybody know a possibility to restore the old naming schema or correct the problem maybe by running a post-install script?
Bye, Frank Schütte fschuett@gymnasium-himmelsthuer.de
participants (3)
-
fschuett
-
Jonathon M. Robison
-
Mike Rose