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

what is the difference between fork and thread ? and parent and child process in fork system call?

3 Answers   Satyam,


What is the difference between ext3 and ext4?

0 Answers   IBM,


how u use the iptable firewall to restrict ssh,telnet,ftp

9 Answers  


How do i check which nfs version I am using ????????

9 Answers   CybAge, IBM,


What is the difference between an argument and an option/switch?

3 Answers   Wipro,






What is the difference between Telnet and SSH?

17 Answers   Bayer, KTree,


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  


How is the difference between ftp and sftp ? and explain how to create ftp server and sftp server with example ?

2 Answers   Bank Of America, IBM,


what is meant by mysql clustering

2 Answers  


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

2 Answers  


As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

0 Answers   Ondot,


Tell me command which is use for create quota database in Linux.

7 Answers   Wipro,


Categories