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 inetd and xinetd
How to build new filesystem ? and what is irig file system?
what is the difference between semaphore, mutex & spinlock?????
plz mention some interesting problems you faced and how you solved it?
What are the main differences between RHEL4 & RHEL5?
How do display error messages instantly when command fails?
what is NIS Server...?
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 ?????????
Through ssh whole directory structure from / is shared regardless the user we have connected with ....... how do i prevent sharing ??
cups stands for..?
i want to install XP on RHEL5 with virtualization tell me step by step configuration
what are the steps for Password-less ssh