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

Answers were Sorted based on User's Feedback



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

Answer / ashish

When you type the command netstat -nr in your shell, you
will find a line starting with 0.0.0.0. Something like

0.0.0.0 192.168.0.4 0.0.0.0 UG 0 0 0 eth0

This line indicates if the system tries to contact a
network outside its local network. It will first contact
the router 192.168.0.4 and it does it with the primary
interface. Hence in this case its eth0. So you can check
this line for the primary interface

Is This Answer Correct ?    14 Yes 0 No

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

Answer / ponnuswamy senthil

You can use "netstat -nr" in which it displays the ip
address of the interface individually, even if you have
VMware machines in your system,
One more command is "mii-too" in that it displays the
interface status is up when you connect the network cable.
(eg) mii-tool eth0
eth0- link ok up. Negotiated
eth1- no link

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Linux AllOther Interview Questions

How to give 2 different gateway IP addresses for 2 different interfaces in same system ?

5 Answers   Toyota,


Tell me the 5 differences between Linux and Unix?

4 Answers  


how do you configure linux system as a router?

4 Answers   HCL,


What are main anti-spam features available in sendmail?

1 Answers   CSC,


Without using w command how can Iknow that who are users logged in and what they are doing and whether they are idle or running mode?

4 Answers  






What is the use of DNS Server? Name other servers works same as like DNS?

2 Answers  


what is difference between inetd and xinetd

2 Answers  


expalin the process of kickstart installation?

1 Answers   HCL, IBM,


How to know what are the packages required for any service? Example: How to know what are the package required for send mail services. using any command it is passable are not?

2 Answers   OnMobile,


what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?

3 Answers   Broadcom,


1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?

0 Answers   Oracle,


In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)

1 Answers  


Categories