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 trace any process background processing?
what are acl permissions..? what is automation of jobs..?
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.
I want to send pop-up message to samba users when they access the shared folder.... for eg: i want to tell them (dont copy mp3 and video files)
what is the gate of ftp server in redhat linux?
how do i check which package has installed some command suppose ls , mkdir or whatever ???
what is the difference between semaphore, mutex & spinlock?????
what is kernel panic error ? how will you fix it if you have face it after rebooting without the the help of rescue disk ?
How to Trouble shoot performance issue in RHEL administration ? please give to one example
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?
i installed clustering packages.When i try to run it getting LUCI error...what is it..??
How can i recover the linux system after it was crashed by step by step process..