LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-14-2009, 01:57 AM   #1
new-b
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
How to detect which nic is driving my network ?


By ifconfig we will get etho and lo

in case we have more then one nic how to determine which nic card is driving my network
 
Old 07-14-2009, 05:15 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The one with the cable?


Cheers,
Tink
 
Old 07-14-2009, 05:53 AM   #3
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Rep: Reputation: 16
I don't know a direct way but you can try bringing them down one by one till you lose you connection.
 
Old 07-14-2009, 06:34 AM   #4
jspsandhu
Member
 
Registered: Dec 2004
Location: Slough, UK
Distribution: Fedora, FreeBSD, RHEL
Posts: 85

Rep: Reputation: 15
As per the Man page of ifconfig
ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even thosethat are down. Otherwise, it configures an interface.

netstat and its options are the best to find out what interface is driving your network.. Try
#netstat -i
 
Old 07-14-2009, 07:19 AM   #5
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Rep: Reputation: 16
yes jspsandhu, netstat -i shows bytes sent/received so you can know which interface is currently working.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lenny Does Not Detect My NIC carlosinfl Debian 5 02-02-2008 12:56 PM
Fail to detect NIC satimis Linux - Networking 4 03-23-2007 12:00 AM
LTSP- could not detect NIC Sayoji Linux - Networking 0 01-30-2007 05:32 AM
mepis will not detect NIC emmay Linux - Networking 2 01-09-2006 03:03 AM
Cannot detect NIC during installation swmok Debian 1 08-30-2003 03:08 PM


All times are GMT -5. The time now is 01:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration