LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Best way to find out primary interface on RHEL Linux (https://www.linuxquestions.org/questions/linux-newbie-8/best-way-to-find-out-primary-interface-on-rhel-linux-874921/)

linux_user2011 04-14-2011 01:23 AM

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

AlucardZero 04-14-2011 08:18 AM

Yes, usually the interface that the default gateway is on can be considered the primary interface

sibe 04-14-2011 09:48 AM

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

linux_user2011 04-15-2011 12:24 AM

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


All times are GMT -5. The time now is 04:00 PM.