Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have ip camera with static ip address preset. How can I know it ip using linux?

I connect camera direct to my notebook.

My system is
Linux machine 3.5.7-gentoo #2 SMP

ifconfig eth0  
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  
        inet6 fe80::21e:ecff:fe18:854f  prefixlen 64  scopeid 0x20<link>  
        ether 00:1e:ec:18:85:4f  txqueuelen 1000  (Ethernet)  
        RX packets 35839  bytes 2150340 (2.0 MiB)  
        RX errors 0  dropped 0  overruns 0  frame 0  
        TX packets 1084  bytes 145354 (141.9 KiB)  
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  
share|improve this question
Read device documentation if it is initial setup or scan your network with nmap if it is already in use. – rush Jun 17 '13 at 14:14
Welcome on StackExchange. You don't provide enough information! It's really difficult for people to help you if you don't explain what is the structure of your network, what is specifically the problem you're trying to solve, what linux distribution do you use... Please read the FAQ and have a look to high-ranted questions to see the best practices of this site. – lgeorget Jun 17 '13 at 14:22
@lgeorget I try to be more specify, please correct me if it is not enough. – victor1234 Jun 17 '13 at 15:55
It's much better! – lgeorget Jun 17 '13 at 17:14

If it has a static IP address preset and not configured to use DHCP by default, it probably still has. In this case, you should connect it to a private network (just a computer and your camera for example) with the same network and netmask to configure it.

If it uses DHCP, you can ping all your network and look in your ARP cache for the MAC address of your camera. For example:

nmap -sP
arp | grep <the MAC address with ':' as separator and lower case letters>

EDIT: (considering the information provided)

If you connect your camera directly to your notebook, you are able to access the camera configuration (it may be a web page, or a simple telnet menu...). In the manual of your camera, you can figure out what is your default camera's IP. You have to configure your notebook by setting a static address in the same network.

For example, if your camera's address is, you can configure your notebook with ifconfig up. You should then be able to ping your camera and modify its configuration (static IP address, DHCP setting, etc.). You'll then be able to connect your camera in the network you want.

share|improve this answer
I assume here that your network is and that your distro tools are standard. You don't provide a lot of information... – lgeorget Jun 17 '13 at 14:15
Camera is already in use and default IP has changed. I can't connect to configuration web page because I don't know IP. And I don't know what IP and mask set by ifconfig. – victor1234 Jun 17 '13 at 18:14
That's the kind of information you should give when you ask a question. Well, then, common networks are,,, and You can set your network to these values successively and do an nmap to look for your camera until you finally find it. – lgeorget Jun 17 '13 at 18:20

The camera should have its MAC address written somewhere on it: this will be twelve characters long, possibly with colons between each pair of characters.

You can then use nmap to probe your subnet to populate your machine's ARP table, then look for a matching entry for your camera's MAC address you have.

$ nmap -sn      <-- replace with your subnet's address and size

Starting Nmap 6.00 ( http://nmap.org ) at 2013-06-17 15:11 BST
Nmap scan report for
Host is up (0.00012s latency).

$ arp -an | grep -v incomplete
? ( at 00:02:03:04:05:06     <-- list of MAC addresses
? ( at 08:0a:0b:0c:0d:0e
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.