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 |
How to Create NIS Server And NIS Client? Explain With Example?
How find out drivers of installed devices in linux (RHEL)?
i want some basic level enterview questions can any one can help me in this
Give a Linux shell command to find all files in a directory which contain ip addresses.
Tell me the 5 differences between Linux and Unix?
How to sort a file of size 2N bytes, if I have N bytes of memory?
expalin the process of kickstart installation?
what are acl permissions..? what is automation of jobs..?
What is the difference between Telnet and SSH?
1 which file contains information about os wether it's 32 bit or 64 bit os 2 difference between logical block and physical block?? 3 what is the size of logical block and physical block?? 4 daemon for nfs on client end as well as server end??? 5 how to confirm from client end about nfs server sharing?? 6 what contains information about file and directory creating time or modification time??
cups stands for..?
User unable to login in server then how can u troubleshooting it? Example: server at Bangalore. in that server two users try to login in server. 1st user able to login. but second user unable to login so how can troubleshoot it ?