how to find the ip address of a computer that is connected to LAN
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to find the ip address of a computer that is connected to LAN
i am actually connected to a computer that is connected to a LAN.
I want to find out my ip address.
My system has windows and linux installed on it. Will the ip addresses be same for both the os.
Can anybody explain me what the output of the "arp" and the "route" command means.
Thanx in advance.........
awating a reply..............
If your ethernet connection is eth0 then you will see a line like this one:
inet addr:192.168.1.34
That address is your IP for the LAN. Your IP should be the same for both OS's, but it is only guarenteed if your IP is static, or if your address assigner (router or whatever) associates your ethernet's hardware address with a certain IP address, in which case your computer will have the same IP because of your card having a static hardware address.
your addresses on Win and Linux are not the same (or at least, there's no reason why they would be the same).
On Win, the best way to look at your IP is to open a console (Start->Execute : command) and type ipconfig.
Just to clarify: by "I want to find out my ip address" do you mean the address of the computer itself (a LAN address) or the address on the Internet (a WAN address, supplied by your ISP)?
Commands//Comments
Ifconfig // Show the IP address and other associative details
ifconfig -a // Show all the available active and de-active devices from the network modules
ip addr // Legacy POSIX standard command to find the IP of the network.
------------------------------------------------------------------------------------>
arp:
ARP is a command (arp) in linux, where we can use to clear the address mapping entry. Also we can set a manual entry for the system. Try issuing the command " arp -v "
------------------------------------------------------------------------------------>
route:
route is a command in Linux where we can find the route entries for the network. Issue the command " route --s" you could able to see the default route and other route entries. Route is nothing but the route to travel through the gateway.
------------------------------------------------------------------------------------>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.