OpenVZ Forum


Home » General » Support » Random networkcard names (eth0/eth1)?
Random networkcard names (eth0/eth1)? [message #37329] Thu, 03 September 2009 08:44 Go to next message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
Hello!

I'm using my own self build kernel - i've attached the configuration. But i have the problem that PCI network cards and onboard networkcards randomly change their names. Sometimes the onboard is eth0 sometimes the external one is eth0.

I'm not using udev for network cards (deleted z45_persistent-net-generator.rules and z25_persistent-net.rules) cause i hate it that when i put the harddisk in another server or i had to swap the mainboard the missing networkcards in udev do not get replaced instead they get numbers like eth8, eth9 and so on.


Can anybody help?

Stefan
  • Attachment: config.txt
    (Size: 40.01KB, Downloaded 259 times)
Re: Random networkcard names (eth0/eth1)? [message #37363 is a reply to message #37329] Fri, 04 September 2009 15:19 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Network cards may change their names.
I'm sure that there are different distributive-specific ways to make them be persistent.
One of them is to change ifcfg-eth* file (put HWADDR variable there). If drivers are differ the "alias eth0 e1000" may be put in modprobe.conf.
Sometimes, /etc/iftab file may be tuned.
Re: Random networkcard names (eth0/eth1)? [message #37367 is a reply to message #37329] Fri, 04 September 2009 15:46 Go to previous messageGo to next message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
mhm but is this related to modules? Normally we use kernels without module support - and i've never seen this in that case
Re: Random networkcard names (eth0/eth1)? [message #37372 is a reply to message #37367] Fri, 04 September 2009 16:24 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
No, I was thinking that changing ifcfg-* files doesn't depend on the fact whether kernel modules are used.
Re: Random networkcard names (eth0/eth1)? [message #37373 is a reply to message #37329] Fri, 04 September 2009 16:28 Go to previous message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
oh sorry i meant is my problem with the switching names / driver loading related to kernel modules?
Previous Topic: ISPConfig
Next Topic: Scaling UBC values: Why?
Goto Forum:
  


Current Time: Tue Aug 20 23:16:47 GMT 2024

Total time taken to generate the page: 0.03162 seconds