LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-12-2007, 01:36 PM   #1
simonmorley
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
Interface Ordering - permanently set NIC as eth0


Hi,

We've just created a live cd for an Internet cafe based on debian.

I'm having issues with the network interfaces. The motherboard we're using has an integrated realtek 8139 NIC.

For some reason, every kiosk we have built boots with a different interface name. We started on eth0 and are now on eth2. Obviously there's no network.

What I need to do is make sure that each time a box boots, it's always on eth0 so we can automatically start the interface.

I've edited /etc/modprobe.d/aliases and added the following:

alias eth0 8139too

And then run update-modules but that doesn't help.

We can't also specify that a certain MAC address should use eth0 as we're using tonnes of different machines.

Thanks,

Simon
 
Old 07-14-2007, 09:19 AM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Write a udev rule.

Write udev rules specifying your devices and you can force device naming.

A very basic how-to:
http://www.reactivated.net/writing_udev_rules.html

If you have more than one interface on the system:
http://www.linuxquestions.org/questi...d.php?t=563356

Gluck man
 
Old 07-15-2007, 05:05 AM   #3
simonmorley
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Mac addressing issue

Hi, thanks for the answer. The problem with this is that I cannot specify a mac address as the livecd will be used in numerous computers.

Simon
 
Old 07-24-2007, 01:59 PM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Interesting.

Only way i know of to fix that would be to get the Mac address on all of the computers and manually edit the iso image of the disk before burning it.

If you are using dhcpcd then you could edit the iso file to dhcpcd everything before burning.

Other than these two possibilities I'm not really sure of another way it could be done. Good luck, and if you figure it out it would be a nice how-to though.
 
Old 07-25-2007, 03:01 AM   #5
simonmorley
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
NIC Ordering with UDEV

Hi,

I've actually done it using udev and our kiosks are rolling out right now!

Because currently all our kiosks are using the same NIC I setup a Udev rule to say for driver 8139too name interface eth0.

It seems to be working ok - the only issue is that we'll have to change if we update the machines.

Simon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek NIC (eth0 interface)not detected!! shady_Dev Linux - Hardware 2 06-26-2007 02:43 AM
"Bringing up interface eth0: failed" on 3com NIC zoinkedzonker Linux - Networking 3 08-17-2004 12:18 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
how to set which NIC is eth0, & which is eth1 roshko Linux - Networking 4 09-01-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration