LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2009, 08:55 AM   #1
srinu9091
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Primary interface command


Hi,

Can anybody tell me how to find out "PRIMARY INTERFACE".

THANKS,
SRINU
 
Old 07-31-2009, 09:30 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
That would depend much on the context in which you saw "PRIMARY INTERFACE".

At a guess: It's talking about your primary network interface card (NIC).

The first NIC on most Linux install is labeled as eth0, the second as eth1 etc... Generally most folks would think of eth0 as the "primary" but it depends a lot on what you use it for.

The configuration file for eth0 and other NICs depends on which distro you're running. On Fedora/RedHat/CentOS it would be /etc/sysconfig/ifcfg-eth0. You can typically determine the MAC (hardware) address of the NIC in the configuration file. You could then use tools such as lspci, kudzu or dmidecode to try to match this MAC address to specific slot or device.

Also many newere NICs have the capability to flash using the ethtool command. So if you wanted to find out which NIC was eth0 you could try typing "ethtool -p eth0" then check to see which one started blinking.
 
Old 08-03-2009, 01:21 PM   #3
srinu9091
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thnx - primary interface

I really appreciate for your prompt response.

I got lot of information from your answer.

Here I would like to share some more information to clarify my doubts for the same.(As per CentOS )

There are 4 network Interfaces, how can we find which one is Primary.

I got some information for the above question, but I am not much satisfied with the answers given in that.

Please go through the below link for detailed information for the same.

www.allinterview.com/showanswers/81098.html


Thanks in Advance
Srinivas
 
Old 08-04-2009, 08:09 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
CentOS uses the same setup as RHEL so my previous answer gives all the information you should need to figure it out.
 
  


Reply

Tags
interface, primary



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
Can only use command line interface! The helpless one Linux - Newbie 6 03-12-2006 03:42 PM
Running Fedora 4 on primary master and cant acsess my xp files on primary slave roxberry1 Linux - Newbie 5 01-29-2006 11:37 AM
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 08:16 PM
Specifying the primary network interface. doofus *BSD 0 03-10-2004 01:07 AM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:38 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