Re: [Ilugc] eth0 became eth5 after installation
On Wed, Dec 5, 2012 at 11:33 AM, Arun Khan knu...@gmail.com wrote: The trouble is I did not pull out the nic card on this server and replace the nic after installation for me to face this problem. I don't understand what you are saying above. I ment that if I had replaced the NIC card on the server then it is okay for the OS to have named my nic card in that increasing order, however it this case all I did was to reboot the machine and eth0 became eth5. Please state your problem clearly. What you kind of hardware you are dealing with, what are you doing with that hardware. I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( Brute force solution - empty the persistent net rules file and reboot. udev will recreate the entries in the file and assign device eth* names in the order it sees them. Edit the file to your liking i.e. which NIC (aka mac address) you want to assign to respective eth* names. This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? -- Regards, Balasubramaniam Natarajan www.blog.etutorshop.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
These are the problems you will never face in OpenBSD. Aana other than my throat getting dry nothing is going to change in LUG. ;) On Tue, Dec 11, 2012 at 5:53 PM, Balasubramaniam Natarajan bala150...@gmail.com wrote: On Wed, Dec 5, 2012 at 11:33 AM, Arun Khan knu...@gmail.com wrote: The trouble is I did not pull out the nic card on this server and replace the nic after installation for me to face this problem. I don't understand what you are saying above. I ment that if I had replaced the NIC card on the server then it is okay for the OS to have named my nic card in that increasing order, however it this case all I did was to reboot the machine and eth0 became eth5. Please state your problem clearly. What you kind of hardware you are dealing with, what are you doing with that hardware. I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( Brute force solution - empty the persistent net rules file and reboot. udev will recreate the entries in the file and assign device eth* names in the order it sees them. Edit the file to your liking i.e. which NIC (aka mac address) you want to assign to respective eth* names. This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? -- Regards, Balasubramaniam Natarajan www.blog.etutorshop.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc -- Gayatri Hitech http://gayatri-hitech.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
On Tue, Dec 11, 2012 at 5:53 PM, Balasubramaniam Natarajan bala150...@gmail.com wrote: On Wed, Dec 5, 2012 at 11:33 AM, Arun Khan knu...@gmail.com wrote: The trouble is I did not pull out the nic card on this server and replace the nic after installation for me to face this problem. I don't understand what you are saying above. I ment that if I had replaced the NIC card on the server then it is okay for the OS to have named my nic card in that increasing order, however it this case all I did was to reboot the machine and eth0 became eth5. I don't have your persistent rules file handy. I have not seen the contents change *unless* there is some hardware change - removal does not delete it's respective entry and addition creates an new entry with the eth number bumped up. Please state your problem clearly. What you kind of hardware you are dealing with, what are you doing with that hardware. I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( Brute force solution - empty the persistent net rules file and reboot. udev will recreate the entries in the file and assign device eth* names in the order it sees them. Edit the file to your liking i.e. which NIC (aka mac address) you want to assign to respective eth* names. What Linux distro and version number? This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? See above - entries in the persistent rules file should not change mapping of eth name to mac address. You can make a backup copy of the persistent rules file for reference. -- Arun Khan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
On Tue, Dec 11, 2012 at 10:08 AM, Arun Khan knu...@gmail.com wrote: I don't have your persistent rules file handy. I have not seen the contents change *unless* there is some hardware change - removal does not delete it's respective entry and addition creates an new entry with the eth number bumped up. Here I did not do any hardware change all I did was apt-get update followed by apt-get upgrade followed by reboot, however this occured just once. On subsequent reboots the ethX does not get bumped up by one. What Linux distro and version number? cat /etc/debian_version wheezy/sid This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? See above - entries in the persistent rules file should not change mapping of eth name to mac address. You can make a backup copy of the persistent rules file for reference. This has happened around 3 time in approximately 50 servers so far. If the same continues I am planning to turn on the file immutable with chattr to prevent it from getting changed, do you think that might help ? -- Regards, Balasubramaniam Natarajan www.blog.etutorshop.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
On Tuesday 11 December 2012 05:53 PM, Balasubramaniam Natarajan wrote: I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( The first thing I do after installing a box is setup ifrename. I usually name the interfaces to 'eth-pub', 'eth-pvt', 'eth-mgmt', etc. -- .o. I'm a Free man. I use Free Software. ..o ooo http://www.joesteeve.org/ signature.asc Description: OpenPGP digital signature ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
Dear Girish Ji, Why do you always need to be so sarcastic ? I love linux, and would even want to live with it, most of the time (99.99%) it gives me everything and even the community people are very good mannered and well cultured. There are many times that even a simple reply can be made into a top-class solution to the OP. When dont you answer from Linux point of view Do, turn in your charm face when you are replying. I always liked those sessions when we met for spam cheetah at chennai (Frontier others). Looking to see your charming friendly reply (instead of hard-task-master type). regards, s.sivakumar chennai On Tue, Dec 11, 2012 at 6:22 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: These are the problems you will never face in OpenBSD. Aana other than my throat getting dry nothing is going to change in LUG. ;) On Tue, Dec 11, 2012 at 5:53 PM, Balasubramaniam Natarajan bala150...@gmail.com wrote: On Wed, Dec 5, 2012 at 11:33 AM, Arun Khan knu...@gmail.com wrote: The trouble is I did not pull out the nic card on this server and replace the nic after installation for me to face this problem. I don't understand what you are saying above. I ment that if I had replaced the NIC card on the server then it is okay for the OS to have named my nic card in that increasing order, however it this case all I did was to reboot the machine and eth0 became eth5. Please state your problem clearly. What you kind of hardware you are dealing with, what are you doing with that hardware. I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( Brute force solution - empty the persistent net rules file and reboot. udev will recreate the entries in the file and assign device eth* names in the order it sees them. Edit the file to your liking i.e. which NIC (aka mac address) you want to assign to respective eth* names. This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? -- Regards, Balasubramaniam Natarajan www.blog.etutorshop.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc -- Gayatri Hitech http://gayatri-hitech.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
--- On Tue, 11/12/12, Balasubramaniam Natarajan bala150...@gmail.com wrote: This worked on an instance, thanks. However how do I make sure that the OS does not rename the interface automatically and cause this confusion ? See above - entries in the persistent rules file should not change mapping of eth name to mac address. You can make a backup copy of the persistent rules file for reference. This has happened around 3 time in approximately 50 servers so far. If the same continues I am planning to turn on the file immutable with chattr to prevent it from getting changed, do you think that might help ? Sometime back I faced the similar situation. I wanted all eth's to be static even if card is changed (a box in a remote location). I edited /etc/udev/rules.d/75-persistent-net-generator.rules. In whitelist I added eth*. This stopped udev from assigning rules for eth. However, what you face should be bug. Better to take it in debian mailing list. Raman.P blog:http://ramanchennai.wordpress.com/ ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
On Tue, Dec 11, 2012 at 11:14 PM, Joe Steeve joe_ste...@gmx.net wrote: On Tuesday 11 December 2012 05:53 PM, Balasubramaniam Natarajan wrote: I am using Dell Rack based server, which has four ethernet card. While installing the system I configure eth0 to be my mgmt interface. Then I ran apt-get update and apt-get upgrade, then rebooted the system when I faced this problem of eth0 never came up :-( The first thing I do after installing a box is setup ifrename. I usually name the interfaces to 'eth-pub', 'eth-pvt', 'eth-mgmt', etc. Nice alternative. I have used it many years ago but with udev persistent rules it went out of my horizon. Thanks for mentioning it here. -- Arun Khan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] eth0 became eth5 after installation
On Wed, Dec 5, 2012 at 6:38 PM, Balasubramaniam Natarajan bala150...@gmail.com wrote: Hi I have a server with 4 nic card, I installed Debian wheezy/sid on it. After installation I rebooted the machine only to find that the eth0 has become eth5 ? This is the closest thing I came up with google https://forums.virtualbox.org/viewtopic.php?f=6t=24383 This is a Linux *feature* that when ever you change the MAC address it ups the eth* Yes. The trouble is I did not pull out the nic card on this server and replace the nic after installation for me to face this problem. I don't understand what you are saying above. etc/udev/rules.d# cat 70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x14e4:/sys/devices/pci:00/:00:1c.4/:02:00.0 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==d4:ae:52:ab:65:b8, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth0 # PCI device 0x14e4:/sys/devices/pci:00/:00:1c.4/:02:00.1 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==d4:ae:52:ab:65:b9, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth1 # PCI device 0x14e4:/sys/devices/pci:00/:00:03.0/:08:00.0 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:10:18:e4:48:0a, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth2 # PCI device 0x14e4:/sys/devices/pci:00/:00:03.0/:08:00.1 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:10:18:e4:48:0b, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth3 # PCI device 0x14e4:/sys/devices/pci:00/:00:1c.4/:02:00.1 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==d4:ae:52:ad:4d:29, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth4 # PCI device 0x14e4:/sys/devices/pci:00/:00:1c.4/:02:00.0 (tg3) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==d4:ae:52:ad:4d:30, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth5 However, the posted rules file indicates you are using multi port ethernet cards (mac addresses are in sequence). Also eth0 mac address != eth5 mac address. Please state your problem clearly. What you kind of hardware you are dealing with, what are you doing with that hardware. Brute force solution - empty the persistent net rules file and reboot. udev will recreate the entries in the file and assign device eth* names in the order it sees them. Edit the file to your liking i.e. which NIC (aka mac address) you want to assign to respective eth* names. HTH -- Arun Khan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc