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 difference between inetd and xinetd

2 Answers  


How to build new filesystem ? and what is irig file system?

3 Answers  


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

1 Answers   Patni,


plz mention some interesting problems you faced and how you solved it?

0 Answers  


What are the main differences between RHEL4 & RHEL5?

11 Answers  






How do display error messages instantly when command fails?

4 Answers  


what is NIS Server...?

2 Answers   IBM,


I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????

6 Answers   IBM,


Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??

4 Answers   Tech Mahindra,


cups stands for..?

6 Answers   IBM,


i want to install XP on RHEL5 with virtualization tell me step by step configuration

1 Answers  


what are the steps for Password-less ssh

5 Answers   IBM, Mind Tree,


Categories