Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-31-2009, 08:55 AM
|
#1
|
LQ Newbie
Registered: Dec 2007
Posts: 2
Rep:
|
Primary interface command
Hi,
Can anybody tell me how to find out "PRIMARY INTERFACE".
THANKS,
SRINU
|
|
|
07-31-2009, 09:30 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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.
|
|
|
08-03-2009, 01:21 PM
|
#3
|
LQ Newbie
Registered: Dec 2007
Posts: 2
Original Poster
Rep:
|
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
|
|
|
08-04-2009, 08:09 AM
|
#4
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
CentOS uses the same setup as RHEL so my previous answer gives all the information you should need to figure it out.
|
|
|
All times are GMT -5. The time now is 01:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|