There are 4 network Interfaces, how can we find which one
is Primary.
Answers were Sorted based on User's Feedback
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 |
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 |
what is difference between TFTP abd FTP?
How to sort a file of size 2N bytes, if I have N bytes of memory?
Why is it suggested to disable journalism in ext4 filesystem?
What are RPM?s, what do they offer?
there are many IPC mechanisms available in Linux ? Which one is best to use and when ?
What is page-in and page-out in redhat linux?
Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??
How to apply patch for multiple servers .
What are the main differences between RHEL4 & RHEL5?
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 ?????????
How to check all open ports on linux machine and block unsed ports????????
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?