0

I have an Ethernet camera which is directly connected to my Ubunut machine via Ethernet cable. I only know the MAC address of the camera and don't know its IP address or its subnet mask. I think that the camera has a static IP.

I found many questions regarding this problem and most of the people suggested using nmap. The problem is that I'm not sure what is the subnet mask the should be used with nmap and I have no experience about networking.

I tried something like (as suggested here):

nmap -sn 134.109.133.0/24

Then

arp -an | grep -v incomplete

But the output was NULL

I also tried wireshark and avahi-discover but didn't work.

Could someone help me with this please?

5

I have a laptop I use at client sites for issues like this. I run wireshark to see what's on the network, and what traffic the device generates.

Ideally, you have just the host with wireshark and the device you are trying to manage, connected via ethernet to a switch, and nothing else connected. With the host powered up, and the device powered down, launch wireshark and begin a capture session on the ethernet. Power up the device and you will see what the device is using to communicate on the wire.

you may need a cross-over cable if you have the device connected via ethernet directly to your computer's ethernet port.

Good luck!

  • Many thanks @BISI. It worked and now I can reach the camera. I tried to make the camera IP DHCP and I expected that I will be able to reach the camera without setting the IP address and the subnet mask of my PC each time but it didn't work. I don't know why! Therefore, I reset it to be static. Any suggestion how can I reach the camera without having to reset the IP address of my PC each time? – Salahuddin Ahmed Oct 11 '17 at 16:08
  • a hard reset on the camera? Update firmware for it? it's not clear that your camera is successfully getting config info from the DHCP server. If both your computer and your camera are getting their configuration information from the same DHCP server, then you should be able to reach the camera from any device on the LAN. You can use wireshark, and filter on the known MAC address of the camera to troubleshoot the DHCP issue. – BISI Oct 19 '17 at 0:18
  • Yes, this, and most IP cameras use port 554, so if you can find traffic to and from port 554 with wireshark or tcpdump - that's the camera most likely – Sergiy Kolodyazhnyy Dec 10 at 7:12
0

arp -a should provide the results that you need. The output is in the format:

? (IP-address) at MAC Address [interface type] on interface name

If you get no output odds are very good that you aren't connected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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