Thursday, September 25, 2014

Change NIC name to em1 to eth0 on SuSE Linux Box

#ifconfig | grep HW
em1 Link encap:Etherenet

#ls /etc/udev/rules.d | grep biosdevname.rules
71-biosdevname.rules

#cat /boot/grub/menu.lst
kernel /vmlinuz-3.0.76-0.11-default root=/dev/disk/by-id/ata-VBOX_HARDDISK_VBe5a986d1-1dd7c0b3-part4 resume=/dev/disk/by-id/ata-VBOX_HARDDISK_VBe5a986d1-1dd7c0b3-part3 splash=silent crashkernel=256M-:128M showopts vga=0x314
add "biosdevname=0" at the end

#cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistentnet.rules.old
#cat < /dev/null > /etc/udev/rules.d/70-persistent-net.rules

#mv /etc/sysconfig/network/ifcfg-em1 /etc/sysconfig/network/ifcfg-eth0
#mv /etc/sysconfig/network/ifcfg-em2 /etc/sysconfig/network/ifcfg-eth1

No comments: