LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-25-2010, 01:18 AM   #1
bskumar7080
Member
 
Registered: Aug 2009
Distribution: Mandriva
Posts: 57

Rep: Reputation: 15
how to find ipaddress of the device connected with system in ubuntu


How to find ipaddress of the device connected to the system..
 
Old 03-25-2010, 01:27 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 592

Rep: Reputation: 64
Quote:
Originally Posted by bskumar7080 View Post
How to find ipaddress of the device connected to the system..
Use this command:
Quote:
ifconfig -a
 
Old 03-25-2010, 01:45 AM   #3
bskumar7080
Member
 
Registered: Aug 2009
Distribution: Mandriva
Posts: 57

Original Poster
Rep: Reputation: 15
Which is the ip address in the following

i got the following output for ifconfig

eth0 Link encap:Ethernet HWaddr 00:1c:c0:6e:sa:2a
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c0ff:fe6e:da4a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12646 errors:0 dropped:0 overruns:0 frame:0
TX packets:12654 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9762551 (9.7 MB) TX bytes:2063766 (2.0 MB)
Interrupt:27 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9292 (9.2 KB) TX bytes:9292 (9.2 KB)
 
Old 03-25-2010, 01:48 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
Can you see this?

Code:
inet addr:10.0.0.6
This is the ip address of your machine.

Also use Code tags to paste the computer output. It will help members reading the post.
 
Old 03-25-2010, 01:50 AM   #5
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 592

Rep: Reputation: 64
Quote:
Originally Posted by bskumar7080 View Post
i got the following output for ifconfig

eth0 Link encap:Ethernet HWaddr 00:1c:c0:6e:sa:2a
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c0ff:fe6e:da4a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12646 errors:0 dropped:0 overruns:0 frame:0
TX packets:12654 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9762551 (9.7 MB) TX bytes:2063766 (2.0 MB)
Interrupt:27 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9292 (9.2 KB) TX bytes:9292 (9.2 KB)
It shows your network interface which is eth0 has the ip address 10.0.0.6

Last edited by Sayan Acharjee; 03-25-2010 at 01:51 AM.
 
Old 03-25-2010, 08:38 AM   #6
bskumar7080
Member
 
Registered: Aug 2009
Distribution: Mandriva
Posts: 57

Original Poster
Rep: Reputation: 15
is it possible to find ip address of the device which is connected to system alone using ethernet cable
 
Old 03-25-2010, 08:43 AM   #7
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
huh??

You want to look at an external cable to get the address??
Not to sound smart, but that is like looking at the outside of the computer and knowing it has a word processor installed.
 
Old 03-25-2010, 08:46 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
I guess not. You can find out the ip address of the system you are working on. But on other system connected through a cable? I do not know. I have not done anything like this. I doubt it.
 
Old 03-25-2010, 09:01 AM   #9
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
Any Device which is connected to a computer or a network won't pick up an ip address automatically. You have to either configure the ip address in the device or setup a DHCP server in the computer or network for the other device to automatically pick up the ip address.

Please don't post multiple threads for the same question.
 
Old 03-25-2010, 09:02 AM   #10
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
If you are wanting the Ip address of whatever you are directly connected to then just use nmap which will scan a given subnet and return results for hosts that allow returns. Something like a firewall can affect the results, but generally you will get some result including the ip address. Assuming you are on a class C 10.0.0.0 network then the nmap command would be
Code:
nmap 10.0.0/24
This of course is dependent on the network actually being in a working state.

If you mean across the net, I'm not sure how, but it's doable.

Last edited by damgar; 03-25-2010 at 09:03 AM.
 
Old 03-25-2010, 09:27 AM   #11
bskumar7080
Member
 
Registered: Aug 2009
Distribution: Mandriva
Posts: 57

Original Poster
Rep: Reputation: 15
My question is i want to find the ip address of embedded device(like beagle board ) connected to pc. is it possible to assign ip address of our own to pc and other devices connected to it
 
Old 03-25-2010, 01:44 PM   #12
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Rep: Reputation: 16
well im not sure about you're question , but if i'm right , i think you are asking if we can set ip addresses for a device and make it fixed so it won't change? if that is your question , then yes its possible but only if the device/pc is not reset or if the os is reinstalled in the pc , the ip addresses will change and if the device is reset everything will be reset.
 
Old 03-25-2010, 01:59 PM   #13
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
you can always try finding an ip range scanner such as Angry IP scanner and give it a range of ips (based on the ip/subnet of your machine) and let it scan, and chances are ONE of the ips it finds will be the one you are looking for
 
Old 03-26-2010, 01:47 AM   #14
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
Quote:
Originally Posted by bskumar7080 View Post
My question is i want to find the ip address of embedded device(like beagle board ) connected to pc. is it possible to assign ip address of our own to pc and other devices connected to it
You can assign an IP address to your computer or any device if it facilitates setting an IP address, and, provided that you run a DHCP server, you can even assign IP addresses to the devices on the network so that they can automatically get their IP addresses.

If you have a DHCP server on the network or if you are so sure that your device is picking up and IP you can use the IP scanner suggested by frieza. If your board didn't pick any IP address or you haven't set any IP address to the boards n/w interface then you cannot find by such IP scans.


Now, are you running any Operating system on the board. If it is Linux, I am sure you can install some package with which you can set the IP. If you are not running any OS, then there must be some way in which you can set the IP address, refer the board's manual.
 
Old 03-26-2010, 06:50 AM   #15
bskumar7080
Member
 
Registered: Aug 2009
Distribution: Mandriva
Posts: 57

Original Poster
Rep: Reputation: 15
Is it possible to install DHCP server and generate ip address of pc running the DHCP server
 
  


Reply

Tags
dhcp, ip


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
Howto find what device is connected to given switchport creatorrr Linux - Networking 6 12-17-2007 10:36 PM
How to Find IPAddress of Client duryodhan Programming 9 11-05-2006 01:49 AM
Is there any way in iptables to find ipaddress of a interface while firing iptable ru gopalgurus Linux - Networking 1 06-19-2006 07:40 AM
how to find ipaddress of the other system when we r chatting.. ramabrahmam Linux - Networking 1 04-29-2006 10:50 AM


All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
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