Hi guys...

Am using Nano Pi M1 with Debian OS.

I kept static IP address for it by editing the file /etc/network/interfaces and adding the below lines

Code: Select all

sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1


After setting the IP, I rebooted the M1 and checked ip using

Code: Select all

ifconfig
and found my IP same as I kept for static. Then I run my TCP server in it and from my PC I am continuously checking the ping.
In the run time, I am losing the Ethernet connection (observed in PING) and then again I checked my IP from serial port using

Code: Select all

ifconfig
. Then it is not showing any IP address. Again when I reboot I am getting my IP back.

Please help me out to solve this issue.
Thanks in advance.