LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find ipaddress of the device connected with system in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-ipaddress-of-the-device-connected-with-system-in-ubuntu-797704/)

bskumar7080 03-25-2010 12:18 AM

how to find ipaddress of the device connected with system in ubuntu
 
How to find ipaddress of the device connected to the system..

Sayan Acharjee 03-25-2010 12:27 AM

Quote:

Originally Posted by bskumar7080 (Post 3911309)
How to find ipaddress of the device connected to the system..

Use this command:
Quote:

ifconfig -a

bskumar7080 03-25-2010 12:45 AM

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)

linuxlover.chaitanya 03-25-2010 12:48 AM

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.

Sayan Acharjee 03-25-2010 12:50 AM

Quote:

Originally Posted by bskumar7080 (Post 3911336)
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

bskumar7080 03-25-2010 07:38 AM

is it possible to find ip address of the device which is connected to system alone using ethernet cable

grail 03-25-2010 07:43 AM

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.

linuxlover.chaitanya 03-25-2010 07:46 AM

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.

sreeharsha.t 03-25-2010 08:01 AM

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.

damgar 03-25-2010 08:02 AM

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.

bskumar7080 03-25-2010 08:27 AM

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

anurupr 03-25-2010 12:44 PM

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.

frieza 03-25-2010 12:59 PM

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

sreeharsha.t 03-26-2010 12:47 AM

Quote:

Originally Posted by bskumar7080 (Post 3911730)
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.

bskumar7080 03-26-2010 05:50 AM

Is it possible to install DHCP server and generate ip address of pc running the DHCP server


All times are GMT -5. The time now is 11:26 AM.