LinuxQuestions.org
Review your favorite Linux distribution.
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 04-14-2011, 01:23 AM   #1
linux_user2011
LQ Newbie
 
Registered: Apr 2011
Posts: 14

Rep: Reputation: 0
Best way to find out primary interface on RHEL Linux


Could someone please help me with the best way to find out the primary interface on RHEL Linux. I came across http://www.allinterview.com/showanswers/81098.html. Is this the best way?

Regards
 
Old 04-14-2011, 08:18 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
Yes, usually the interface that the default gateway is on can be considered the primary interface
 
Old 04-14-2011, 09:48 AM   #3
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Consider a different perspective on a machine which runs in a strictly enforced routing policy environment that does not incorporate any default gateway, i.e. every route is statically defined. Under this kind of environment, every active interface should be considered as primary.

----
sibe

Last edited by sibe; 04-15-2011 at 03:10 AM.
 
Old 04-15-2011, 12:24 AM   #4
linux_user2011
LQ Newbie
 
Registered: Apr 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks AlucardZero and sibe for your kind response. As default gateway is configured in my context, I will use the specified solution to find out the primary router.

Regards
 
  


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
Primary interface command srinu9091 Linux - Networking 3 08-04-2009 08:09 AM
How to find whether my Linux is RHEL ES or RHEL AS? ravikn76 Linux - General 5 03-19-2009 01:20 AM
How to find your own primary DNS socialjazz Programming 1 04-04-2007 02:25 AM
HELP! pc can't find primary master kpachopoulos General 6 02-01-2005 09:41 PM
Specifying the primary network interface. doofus *BSD 0 03-10-2004 01:07 AM


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