Page 1 of 1

M1 IP address, not setting one?

Posted: Fri May 20, 2016 9:04 am
by Brian Beuken
Hi
having an odd problem with my M1, it did work last time I tested it out, but today I came to use it, and hooked it up to my laptop before powering it up

After powering up, I went to a terminal to enter ifconfig so I could set up an SSH connection via Visual Studio, but the M1 does not seem to have an IP address, even though it powered up will connected to my PC

Any ideas why I can't get an IP address?

Re: M1 IP address, not setting one?

Posted: Fri May 27, 2016 7:04 am
by jjm
Brian Beuken wrote:
Hi
having an odd problem with my M1, it did work last time I tested it out, but today I came to use it, and hooked it up to my laptop before powering it up

After powering up, I went to a terminal to enter ifconfig so I could set up an SSH connection via Visual Studio, but the M1 does not seem to have an IP address, even though it powered up will connected to my PC

Any ideas why I can't get an IP address?


:) hello,
Could the M1 ping external network ? And you have to make sure that you can ping external network and the board can internet access .
And can you send me the start information?

Re: M1 IP address, not setting one?

Posted: Fri May 27, 2016 7:05 am
by jjm
Brian Beuken wrote:
Hi
having an odd problem with my M1, it did work last time I tested it out, but today I came to use it, and hooked it up to my laptop before powering it up

After powering up, I went to a terminal to enter ifconfig so I could set up an SSH connection via Visual Studio, but the M1 does not seem to have an IP address, even though it powered up will connected to my PC

Any ideas why I can't get an IP address?


:) hello,
Could the M1 ping external network ? And you have to make sure that you can ping external network and the board can internet access .
And can you send me the start information?

Re: M1 IP address, not setting one?

Posted: Fri Jun 10, 2016 8:47 am
by Brian Beuken
Hi, sorry but I have no idea how to provide start info, I'm not a linux user and find the OS confuising, I only boot it up to allow SSH access to the machine for my projects


But I did manage to get it to aquire its IP if I left for a few minutes or hooked it up to a shared router.

Re: M1 IP address, not setting one?

Posted: Wed Jun 15, 2016 6:07 pm
by ronkwan
from friendlyarm wiki "" If the NanoPi M1 is connected to a network via Ethernet before it is powered on it will automatically obtain an IP (of course through dhcp) after it is powered up. If it is not connected via Ethernet or its DHCP is not activated obtaining an IP will fail and system will hang on for about 15 to 60 seconds ""

the debian image is configured to obtain an address from a dhcpd, in your case, a shared router.

if you need a static ip address, try;

# vi /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.254

then activate new settings;
# systemctl restart networking.service

or

# reboot