Author Topic: reconfigure NIC numbering and order - HOWTO?  (Read 2682 times)

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
reconfigure NIC numbering and order - HOWTO?
« on: March 05, 2009, 10:05:33 pm »
Hi forum,

Situation is as follows:
Asus M3N78-EM mobo
LMCE 7.10rc2 DVD i386 install

As onboard nic is not recognized, and my Sitecom usb LN030 isn't recognized either I added a stock PCI NIC to get through installation time.
Upgraded kernel following the wiki howto.
So far, so good.

Onboard NIC is working allright.

After modifying the source driver mcs7830.c as follows:
Code: [Select]
#define MCS7830_VENDOR_ID 0x9710
#define MCS7830_PRODUCT_ID 0x7830
next 'make modules' and copying mcs7830.ko to /lib/modules/2.6.25.5/kernel/drivers/net/usb/
my usbnet NIC also worked :-)

(PS: I' can not confirm this works before or after kernelupgrade. Is this worthwile to request a change, as 8.10 resolves these issues?)

Problem / Question:

Through this sequence my NIC's are numbered eth2 and eth3, consequently LMCE does not startup without errors as eth0 and eth1 don't exist...

How do I manage to get my NIC's renumbered?
Does this involve editing /etc/network/interfaces? If yes, how do I do this, as eth0 and eth1 seem like disabled....

syslog shows:
Code: [Select]
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #1 wildcard, ::#123 Disabled
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: New relevant interface eth2.IPv4 for mDNS.
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #2 eth2, fe80::223:54ff:fe2b:d556#123 Enabled
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #3 lo, ::1#123 Enabled
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: Network interface enumeration completed.
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #4 eth3, fe80::20c:f6ff:fe4c:59a2#123 Enabled
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: Registering new address record for fe80::20c:f6ff:fe4c:59a2 on eth3.*.
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #5 lo, 127.0.0.1#123 Enabled
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #6 eth2, 192.168.80.1#123 Enabled
Mar  5 21:42:10 dcerouter ntpd[7594]: Listening on interface #7 eth3, 192.168.2.244#123 Enabled
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: Registering new address record for 192.168.2.244 on eth3.IPv4.
Mar  5 21:42:10 dcerouter ntpd[7594]: kernel time sync status 0040
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: Registering new address record for fe80::223:54ff:fe2b:d556 on eth2.*.
Mar  5 21:42:10 dcerouter avahi-daemon[7621]: Registering new address record for 192.168.80.1 on eth2.IPv4.

Thanks for your help!!

Erwin
« Last Edit: March 05, 2009, 10:08:40 pm by Lexje »

jthodges

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: reconfigure NIC numbering and order - HOWTO?
« Reply #1 on: March 05, 2009, 10:22:26 pm »
I don't know if this is the right way, but I usually edit /etc/udev/rules.d/70-persistent-net.rules to reassign eth0 and eth1 when I change nics.  There are usually entries for the old nics still in that file, so I comment them out and update the other entries as appropriate.  Hopefully that would work for your issue as well.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: reconfigure NIC numbering and order - HOWTO?
« Reply #2 on: March 05, 2009, 10:50:30 pm »
Check my post here http://forum.linuxmce.org/index.php?topic=3959.msg22578#msg22578 for details on how to use the udev rules.

Alternatively, you can simply set them in /etc/iftab

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: reconfigure NIC numbering and order - HOWTO?
« Reply #3 on: March 05, 2009, 11:05:30 pm »
Thanks a lot guys!!
Wonderfull!

:-)

Erwin