Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-14-2006, 05:32 AM   #1
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
which eth works?

My onboard SIS ethernet socket seems to have died recently and I have purchased a new pci card which i've slotted in and works fine on a knoppix livecd on boot. I have to install gentoo permanently on the system and need to know which eth? to use. is there a command i can type from the console which tells me which of the eth's my computer is using? it detects eth0 eth1 and eth2 at startup but doesnt tell me which is transporting information.

p.s. will the numbering regime stay the same when i refer to it in other linux versions?

Old 07-14-2006, 05:58 AM   #2
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
ifconfig -a
That will tell you all ethernet interfaces even if they're not in use. Numbering regime is common to all Linuxes - start at 0 and count upwards!
Old 07-14-2006, 05:59 AM   #3
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
Wouldn't hurt to reveal your Linux version.

In Slackware you'd issue:
mingdao@silas:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:2F:E0:B7:65
          inet addr:  Bcast:  Mask:
          RX packets:3168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3026 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2780574 (2.6 MiB)  TX bytes:551271 (538.3 KiB)
          Interrupt:19 Memory:fdd00000-0

lo        Link encap:Local Loopback
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:433 errors:0 dropped:0 overruns:0 frame:0
          TX packets:433 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:45543 (44.4 KiB)  TX bytes:45543 (44.4 KiB)

tap0      Link encap:Ethernet  HWaddr 06:27:4B:DC:2F:09
          inet addr:  Bcast:  Mask:
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:53 (53.0 b)  TX bytes:0 (0.0 b)
In my motherboard's BIOS the onboard ethernet can be disabled, making eth0 (in my case) disappear.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
XAWTV works, videodog works, motion works but how to code my own? rylan76 Linux - Hardware 0 01-06-2006 07:30 AM
Upgrade to 2.6.x and eth goes down sara_W Linux - Networking 7 09-25-2004 09:37 AM
No eth ???? codedv Debian 6 12-24-2003 05:59 AM
Eth fails, but why? DiZASTiX Linux - Networking 4 05-03-2003 02:18 PM
eth(x) confuses me Cbomb Linux - Networking 3 05-16-2001 11:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 AM.

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