LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-10-2005, 12:04 AM   #1
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Rep: Reputation: 15
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..............
 
Old 02-10-2005, 12:23 AM   #2
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
as root you can try this
Code:
# ifconfig
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.
 
Old 02-10-2005, 10:38 AM   #3
dOEPain
LQ Newbie
 
Registered: Sep 2003
Location: Boston-MA
Distribution: Debian 4
Posts: 8

Rep: Reputation: 0
How to find out your IP address.

if just typing ifconfig does not work, or you get an error stating that the command is unknown, try typing in

/sbin/ifconfig
 
Old 02-10-2005, 11:21 AM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

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.
 
Old 02-10-2005, 11:44 AM   #5
dOEPain
LQ Newbie
 
Registered: Sep 2003
Location: Boston-MA
Distribution: Debian 4
Posts: 8

Rep: Reputation: 0
Linux Only Site

...Aren't we talking about Linux, exclusively?
 
0 members found this post helpful.
Old 05-12-2010, 07:06 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Quote:
I want to find out my ip address.
To find the local ip
in linux type
Code:
/sbin/ifconfig
in windows
Code:
ipconfig
To find the wan ip from the router
goto
http://www.whatismyip.com
Quote:
Can anybody explain me what the output of the "arp" and the "route" command means.
http://en.wikipedia.org/wiki/Address...ution_Protocol
http://linux.die.net/man/8/route
 
1 members found this post helpful.
Old 05-12-2010, 07:14 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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)?
 
Old 12-03-2010, 05:38 AM   #8
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
How to find out your IP: try the below commands

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.
------------------------------------------------------------------------------------>

reg
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
how to find my computer address? mfrangos79 Linux - Newbie 9 11-09-2005 05:20 PM
how could i have fix lan ip address to a computer Paxmaster Linux - Networking 9 01-13-2005 01:09 PM
netstat, how to show what address are connected? trey85stang Slackware 2 12-30-2003 02:56 PM
how do I find config info for simple 2 computer lan toastermaker Linux - Newbie 18 10-29-2003 03:27 PM


All times are GMT -5. The time now is 10:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration