Skip to main content
8 events
when toggle format what by license comment
Apr 27, 2017 at 14:42 history edited bstipe CC BY-SA 3.0
Added to the end for Class B network
Apr 26, 2017 at 19:04 comment added bstipe This works for me, I already know the IP addresses, pi@RPi5:~ $ for x in 123 93 19; do for y in $(seq 110 165); do ping -c1 -W1 -I eth0 169.254.$x.$y | grep 'bytes from'; done; done 64 bytes from 169.254.123.117: icmp_seq=1 ttl=64 time=1.20 ms 64 bytes from 169.254.93.152: icmp_seq=1 ttl=64 time=0.655 ms 64 bytes from 169.254.19.160: icmp_seq=1 ttl=64 time=0.111 ms time, 3min. So with a little modification it would be possible to find the IP address. Example: time for x in $(seq 1 255); do for y in $(seq 1 254); do ping -c1 -W1 -I eth0 169.254.$x.$y | grep 'bytes from'; done; done
Apr 26, 2017 at 17:13 comment added bstipe The 169.254 network is Class B and the above script will not work.
Apr 26, 2017 at 15:28 comment added bstipe Wow! The 169.254 network has 255 * 255 possible addersses. time for x in $(seq 1 255); do for y in $(seq 1 254); do ping -rc1 -W1 169.254.$x.$y | grep 'from' ; done; done would take over 18 hours to find. If you can get the MAC address, try ssh pi@$(arp -a -n | grep '00:21:2f:38:9a:9f' | awk '{print $2}' | tr -d '()') with your MAC address. It should work if in the arp table.
Apr 26, 2017 at 14:01 comment added Ignacio Iro Irurita This is so strange. I run $ time for x in $(seq 90 96); do ping -rc1 -W1 169.254.63.$x | grep 'from'; done on my mac (My RPi ip is 169.254.63.94) and I get network not reached on the RPi ip. The RPi is connected to my mac by LAN cable and yours is connected by wlan, maybe this is why the ping is not working?
Apr 26, 2017 at 13:28 history edited bstipe CC BY-SA 3.0
Learned more information, added at the bottom.
Apr 26, 2017 at 3:08 history edited bstipe CC BY-SA 3.0
Included the "real 0m7.292s" in script.
Apr 26, 2017 at 2:54 history answered bstipe CC BY-SA 3.0