Visit Jeremy's Blog.
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 04-14-2011, 02:23 AM   #1
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 Is this the best way?

Old 04-14-2011, 09:18 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, usually the interface that the default gateway is on can be considered the primary interface
Old 04-14-2011, 10:48 AM   #3
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.


Last edited by sibe; 04-15-2011 at 04:10 AM.
Old 04-15-2011, 01:24 AM   #4
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.



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

All times are GMT -5. The time now is 10:37 PM.

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