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 Trouble shoot performance issue in RHEL administration ? please give to one example
As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.
In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)
what is difference between inetd and xinetd
What is the minimum number of partitions you need to install Linux?
How to sort a file of size 2N bytes, if I have N bytes of memory?
Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.
What are the differences between FTP , NFS , SAMBA servers explain separately.
Which directory is closer to the top of the file system tree, parent directory or current directory?
How can you see all mounted drives?
what is the difference between semaphore, mutex & spinlock?????
What is the difference between home directory and working directory?