Jump to content

Recommended Posts

Posted

FYI & FWIW: Howto find your NanoPi NEO2

 

Your NanoPi NEO2 is connected to your LAN, but how to find it? What is the IP address? Here are my methods:

 

Via bonjour (Ubuntu to Ubuntu):

 

ssh nanopineo2.local.

 

Example:

$ ssh nanopineo2.local.
sander@nanopineo2.local.'s password: 
 _   _                   ____  _   _   _              ____  
| \ | | __ _ _ __   ___ |  _ \(_) | \ | | ___  ___   |___ \ 
|  \| |/ _` | '_ \ / _ \| |_) | | |  \| |/ _ \/ _ \    __) |
| |\  | (_| | | | | (_) |  __/| | | |\  |  __/ (_) |  / __/ 
|_| \_|\__,_|_| |_|\___/|_|   |_| |_| \_|\___|\___/  |_____|
                                                            
Welcome to ARMBIAN 5.32.170704 nightly Ubuntu 16.04.3 LTS 4.11.8-sun50iw2

 

Scan all devices (IP + MAC):

 

$ sudo arp-scan --localnet
Interface: wlp2s0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.9.5 with 256 hosts (https://github.com/royhills/arp-scan)
192.168.0.1    64:d1:a3:03:8a:01    Sitecom Europe BV
192.168.0.106    02:01:9c:45:40:2d    (Unknown: locally administered)
192.168.0.110    00:13:77:fa:63:e3    Samsung Electronics Co.,Ltd
192.168.0.102    ec:1f:72:59:48:b2    SAMSUNG ELECTRO-MECHANICS(THAILAND)
4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.5: 256 hosts scanned in 2.527 seconds (101.31 hosts/sec). 4 responded


Compare with when the NanoPi is off / unconnected, and you know your device. In my case it's 192.168.0.106

 

Hope this helps.

 

 

 

 

 

Posted

In my environment (depends on the router box that is both DHCP server and assigns itself as DNS resolver) a simple 'ssh nanopineo2' would already be sufficient (since Armbian sets the board name as hostname, the DHCP client tells the server this name and the DHCP server hands this information over to the DNS server running on the same machine).

 

An alternative to list also most non-Armbian hosts that works on macOS: 'ping -c3 192.168.83.255 ; arp -a' (192.168.83.255 being the broadcast address of my lab network, of course the little script I use does a bit more getting this stuff dynamically querying the networksetup tool included in macOS).

 

In the past I also thought about announcing on first boot a simple Bonjour registration of type 'Your new Armbian host ready to login' but since most users don't know Bonjour/ZeroConf and most network admins even hate it...

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines