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 |
Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??
How to trace any process background processing?
What is Hard mount and soft Mount?
What are RPM?s, what do they offer?
How to Create NIS Server And NIS Client? Explain With Example?
Where is standard output usually directed?
My root password has been changed, how can i enter into the system without root password?
What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?
there are many IPC mechanisms available in Linux ? Which one is best to use and when ?
what is the difference between NIS and DNS...?
What are the main differences between RHEL4 & RHEL5?
expalin the process of kickstart installation?