0

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?

0

3 Answers 3

1

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                   
 ----------------------------------------------------------------------------- 
 192.168.0.1     aa:bb:cc:dd:ee:ff    01    060   Sitecom Europe BV 
 192.168.0.101   aa:bb:cc:dd:ee:ff    01    060   Unknown vendor               
 192.168.0.104   aa:bb:cc:dd:ee:ff    01    060   Somedevice, INC.         
 192.168.0.116   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.

3
  • it's a good idea. but i don't know ip range of it.
    – Ehsan
    Mar 19, 2014 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? Mar 19, 2014 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, 2014 at 8:10
0

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.

7
  • How it is possible?I mean how can i see the files of this device?
    – Ehsan
    Mar 19, 2014 at 8:17
  • @Ehsan I think mdalacu means the /etc/network/interfaces you mentioned in your question. Didn't you correct the mistake? Mar 19, 2014 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, 2014 at 8:22
  • @Jacob my problem is that I can't remote to device and correcting the file.
    – Ehsan
    Mar 19, 2014 at 8:26
  • @ mdalacu what's you mean?I don't understand your comment.
    – Ehsan
    Mar 19, 2014 at 8:28
0

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

4
  • I have the device MAC address but I dont't know any software that search the network for MAC address.
    – Ehsan
    Mar 19, 2014 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, 2014 at 7:19
  • do you recommend any tools to find the mentioned MAC?please advise
    – Ehsan
    Mar 19, 2014 at 7:30
  • You can use sudo arp-scan -l. Will got all mac address on lan.
    – 2707974
    Mar 25, 2014 at 11:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .