When my machine installs (CentOS 6.3) the two network cards are getting reversed. The PCI card is getting eth0 and the motherboard is getting eth1. I would like them in reverse order to keep things the same as they used to be. How can I easily tell these two to reverse? Generate the 70-persistent-net-rules with motherboard eth0 first then the PCI slot? Thanks, Jerry
Jerry Geis wrote:> When my machine installs (CentOS 6.3) the two network cards are > getting reversed. The PCI card is getting eth0 and the motherboard is > getting eth1. > I would like them in reverse order to keep things the same as they used > to be. > > How can I easily tell these two to reverse? > > Generate the 70-persistent-net-rules with motherboard eth0 first then > the PCI slot?Edit the existing one? It does persist through reboots, which is what you might expect from the name. mark
> > Edit the existing one? It does persist through reboots, which is what you > might expect from the name. > > markMark I'd like to automate- Editing is prone to mistakes. Its not just one machine. So I'd like to automate it. jerry
On 07/13/2012 04:23 PM, Jerry Geis wrote:> When my machine installs (CentOS 6.3) the two network cards are > getting reversed. The PCI card is getting eth0 and the motherboard is > getting eth1. > I would like them in reverse order to keep things the same as they used > to be. > > How can I easily tell these two to reverse? > > Generate the 70-persistent-net-rules with motherboard eth0 first then > the PCI slot? > > Thanks, > > Jerryhttps://alteeve.com/w/Changing_the_ethX_to_Ethernet_Device_Mapping_in_EL6_and_Fedora_12%2B In that, I edit the 70-persistent-net-rules file, but now I just remove it. In short; 1. Stop networking 2. move HWADDR value between ifcfg-ethX files. 3. Delete 70-persistent-net-rules 4. Run; 'start_udev' 5. Start networking. -- Digimer Papers and Projects: https://alteeve.com
On Fri, Jul 13, 2012 at 3:23 PM, Jerry Geis <geisj at pagestation.com> wrote:> When my machine installs (CentOS 6.3) the two network cards are > getting reversed. The PCI card is getting eth0 and the motherboard is > getting eth1. > I would like them in reverse order to keep things the same as they used > to be. > > How can I easily tell these two to reverse? > > Generate the 70-persistent-net-rules with motherboard eth0 first then > the PCI slot?I don't think you can always count on the detection order - so blindly automating a swap is probably a bad idea. Also, you are going to need the right MAC addresses in your ifcfg-eth? files to keep them nailed down. -- Les Mikesell lesmikesell at gmail.com