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 |
Give a Linux shell command to find all files in a directory which contain ip addresses.
How to build new filesystem ? and what is irig file system?
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 ?????????
How do i check which nfs version I am using ????????
Hi all Could u plz tell me how I can get UNIX/Linux Certification
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)
why /etc/shadow file do not have any permission ?
My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.
In how many ways linux can be installed n explain th steps involved in installation in any of the method..?
why you are using nis server
Why is it suggested to disable journalism in ext4 filesystem?
expalin the process of kickstart installation?