Losing Static IP in Run Time
Posted: Mon May 01, 2017 8:01 am
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
After setting the IP, I rebooted the M1 and checked ip using 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. 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.
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
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
Please help me out to solve this issue.
Thanks in advance.