I have a device that has Linux Ubuntu OS. I use SSH for connecting to it. my Linux version is like below when typed cat /proc/version command:

Linux version 3.2.40-g996c4d7-dirty (sysmocom@vagrant-ubuntu-precise) (gcc version 4.6.3 20111117 (prerelease) (GCC) ) #1 PREEMPT Mon Oct 7 8:28:29 CEST 2013.

I change the IP setting with vi command (vi /etc/network/interfaces), but I made a mistake in writing the word "address". I typed it "adress".

Now I don't see the device in the network and I don't know what is it's IP. How i can connect to it again?


I don't think that you can connect to your machine anymore by any means, the nic adaptor does not have an ip in this state. You have to get to the console (physical monitor attached to the machine), login and then correct the networking file.

| improve this answer | |
  • How it is possible?I mean how can i see the files of this device? – Ehsan Mar 19 '14 at 8:17
  • @Ehsan I think mdalacu means the /etc/network/interfaces you mentioned in your question. Didn't you correct the mistake? – Jacob Vlijm Mar 19 '14 at 8:21
  • Remote you can not, you have to work from the affected computer and just corect /etc/network/interfaces file. – mdalacu Mar 19 '14 at 8:22
  • @Jacob my problem is that I can't remote to device and correcting the file. – Ehsan Mar 19 '14 at 8:26
  • @ mdalacu what's you mean?I don't understand your comment. – Ehsan Mar 19 '14 at 8:28

You can use netdiscover to get a list of local ip adresses. It gives you a list like:

 5 Captured ARP Req/Rep packets, from 5 hosts.   Total size: 300               
   IP            At MAC Address      Count  Len   MAC Vendor                   
 -----------------------------------------------------------------------------     aa:bb:cc:dd:ee:ff    01    060   Sitecom Europe BV   aa:bb:cc:dd:ee:ff    01    060   Unknown vendor          aa:bb:cc:dd:ee:ff    01    060   Somedevice, INC.    aa:bb:cc:dd:ee:ff    01    060   Another Device

It is a command line application, run it by sudo netdiscover. If you run the command, it will offer you to install it if you haven't installed it before.

| improve this answer | |
  • it's a good idea. but i don't know ip range of it. – Ehsan Mar 19 '14 at 7:54
  • @Ehsan you mean in your local network? It does not ask for it. It is on the local network isn't it? – Jacob Vlijm Mar 19 '14 at 7:57
  • @ Jacob yes,I attached my device to local network. I was try to set static ip for it and beacause of my mistake, i lost it in the network. – Ehsan Mar 19 '14 at 8:10

from your question i assume this is your own network so If you have the MAC of this device , you may use software for sniffing the MACs on the network

| improve this answer | |
  • I have the device MAC address but I dont't know any software that search the network for MAC address. – Ehsan Mar 19 '14 at 7:15
  • what os you use for your pc , and what is the type of that device , some brands have their own software for such situations – Fat Mind Mar 19 '14 at 7:19
  • do you recommend any tools to find the mentioned MAC?please advise – Ehsan Mar 19 '14 at 7:30
  • You can use sudo arp-scan -l. Will got all mac address on lan. – 2707974 Mar 25 '14 at 11:12

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.