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

Notices


Reply
  Search this Thread
Old 12-07-2003, 01:17 PM   #1
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Rep: Reputation: 15
multiple network interfaces -> getting card vendor for eth0...


hi ^^
sorry if this question is in the wrong place...
I was just wondering how I can determine which nic is eth0, which one eth1 (card name) and how to swap eth0 with eth1...if it is possible at all.
I haven't found out yet in which order or after which criteria linux assigns eth[\d] to the nic's.
thanks if anybody can help me with this one =]
 
Old 12-07-2003, 01:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The question is in the right place,
but your attitude [signature] stinks ...

You can resolve the issue of which is
which by using the MAC addresses,
or even the LED's (physical activity).

And you can set the order by aliasing
the drivers in modules.conf.



Cheers,
Tink
 
Old 12-07-2003, 01:45 PM   #3
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
thanks for the answer
well thats what I usually do...but neither MAC addresses nor LED's won't be of any use because I have two cables, one labeled with '3Com' and the other one 'realtek' (not my work =] ) and the server is buried under approx. 2 tons of cable (not my work) and several other stuff and I would have to remove about 60 cables...which I won't do because there is no documentation (thats how some admins seem to make sure they keep there job ^^)
I guess there isn't a command for that ? :/

Quote:
The question is in the right place,
but your attitude [signature] stinks ...
hihi....sorry....I can't do anything about that...it's sometimes really annoying reading through ten 100p+ docs until finding the one that solves your problem =] please forgive me ^^
 
Old 12-07-2003, 02:11 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You may want to consider using the "remove
the other end of the cable from patchfield
technique", then ... you should have a fair
idea of whether you can ping or not ;)


Cheers,
Tink
 
Old 12-07-2003, 03:13 PM   #5
vvv
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Rep: Reputation: 15
Well, I think I'll field the only question that hasn't been answered yet:
Which network card gets which eth nickname?

And, in this regard, the answer is rather simple: the network card with the lowest IRQ gets eth0, the one with the IRQ higher than that gets eth1, and so on.
 
Old 12-07-2003, 07:39 PM   #6
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
You may want to consider using the "remove
the other end of the cable from patchfield
technique", then ... you should have a fair
idea of whether you can ping or not
stupid me *bangsheadagainstwall* ^^

thanks vvv =]
 
Old 12-07-2003, 07:45 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by vvv
And, in this regard, the answer is rather simple: the network card with the lowest IRQ gets eth0, the one with the IRQ higher than that gets eth1, and so on.
And there was me thinking it depended on the
number of the PCI slot they are in :}


Cheers,
Tink
 
Old 12-07-2003, 07:49 PM   #8
vvv
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Rep: Reputation: 15
Quote:
And there was me thinking it depended on the
number of the PCI slot they are in :}
Might be, might very well be. The IRQ rule has worked for me so far, but I make no claims it's 100% correct. I'll look into it. Would you do so as well?
 
Old 12-07-2003, 08:13 PM   #9
vvv
LQ Newbie
 
Registered: Dec 2003
Posts: 26

Rep: Reputation: 15
Whoops, had a brain fart.
You're completely correct, Tinkster.
 
Old 12-07-2003, 08:16 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Don't know how "authoritative" this is, but...

http://www.tux.org/hypermail/linux-v...-Jul/0004.html
http://support.3com.com/infodeli/too...nux/readme.txt

... it's similar to what I found on a few machines
with two interfaces.

I didn't verify though whether the interrupts
are "sticky" to the slots or not.

Cheers,
Tink


[edit]heh, you beat me to the response by three minutes ;}[/edit]


 
  


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
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 06:30 AM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
eth0 and eth1 with 2 network interfaces codegomer Linux - Networking 12 04-20-2004 10:04 PM
eth0 network card won't activate fukumdaryl Fedora 34 02-20-2004 05:48 PM

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

All times are GMT -5. The time now is 12:53 AM.

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