LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-01-2009, 08:42 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
Linux Ethernet Interfaces


Hello,

We have SLES 10 linux. We have 3 network cards 1 Realtek (on-board ) and 2 Intel Cards (add-ons ). When we install the system , we have noticed that system detects 3 cards as

eth0 - INTEL
eth1 - Realtek
eth2 - INTEL

Now what we expect is eth0 should be assigned to REALTEK. So we are running a script which modifies the /etc/udev/rules.d/30-net_persistent_names.rules file
as per our requirement. And do /etc/init.d/network restart. But ifconfig still shows the older assignments. Like eth0 - INTEL , eth1 - realtek and eth2 - INTEL.
Now the question is how to update the ifconfig assignments without reboot. Reboot may solve this problem but we wish to achieve it without reboot.
Is there anything we need to do with udev or so ?

Thanks in adv.
 
Old 04-01-2009, 10:24 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Try running 'udevtrigger'. Not tested it myself, but it should cause all the rules to be re-run.

Dave
 
Old 04-02-2009, 11:01 AM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks for the reply. We tried this command , it works fine if we have only single ethernet interface. But in case of multiple interfaces, when the interfaces names are changed in /etc/udev/rules.d/30-persistent file and udevtrigger is ran .. this command does create some weird entries for interfaces. Like ethxx0 or ethxx1.

Is there anyway we can fix this issue?
 
Old 04-03-2009, 08:51 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Does udevtrigger still create weird interface names if your custom rules are taken out?

Dave
 
Old 04-03-2009, 08:57 AM   #5
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
It creates such interfaces only when we have multiple interfaces and we change the 30-persistent file manually to make eth0 to eth2 and/or eth2 to eth1. Then i guess udevtrigger gets confused and creates such interfaces.
 
Old 04-03-2009, 09:05 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
I would change your rules to create completely differently named network devices, like realtek0, intel0, intel1 and so on, so that udev doesn't trip out. Solaris does something similar, naming the network devices according to the driver name.

Dave
 
Old 04-03-2009, 09:18 AM   #7
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
You have a point. I did think that when udevtrigger tries to change the interface name from eth0 to eth2 , actually eth2 is already reserved for some interface and thats where the problem starts and i suppose then the system assigns the interface name as ethxx1 or so.
So i guess if we give some logical names then changing it will not be a problem for udevtrigger.
Sounds good , i shall give it a try and revert. For the moment , i say thanks to you for your views.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd on multiple ethernet interfaces Jestrik Linux - Networking 10 10-03-2011 09:40 AM
Multiple Ethernet Interfaces gjs286 Linux - Networking 1 04-19-2004 01:09 PM
Configuring ethernet interfaces by hand question.. tarballed Linux - Networking 2 07-17-2003 02:36 PM
Master/slave ethernet interfaces sewer_monkey Linux - Networking 6 10-24-2002 11:02 AM
FTP problem with two ethernet interfaces... KConway Linux - Networking 7 07-30-2001 11:37 AM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration