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 Trouble shoot performance issue in RHEL administration ? please give to one example

1 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.

1 Answers   Ondot,


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  


what is difference between inetd and xinetd

2 Answers  


What is the minimum number of partitions you need to install Linux?

30 Answers  


How to sort a file of size 2N bytes, if I have N bytes of memory?

2 Answers   Yahoo,


Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.

3 Answers  


What are the differences between FTP , NFS , SAMBA servers explain separately.

0 Answers  


Which directory is closer to the top of the file system tree, parent directory or current directory?

3 Answers  


How can you see all mounted drives?

10 Answers  


what is the difference between semaphore, mutex & spinlock?????

1 Answers   Patni,


What is the difference between home directory and working directory?

10 Answers   Accenture, Flexi,


Categories