At startup or reboot, network interface works fine. Host is reachable and also can communicate with other devices on the local net or internet.
IP address is configured as static, and dns-nameservers are Google ones.
Here is the '/etc/network/interfaces' file:
# loopback auto lo iface lo inet loopback # eth0 allow-hotplug eth0 auto eth0 iface eth0 inet static # configuration address X.X.X.X netmask 255.255.255.0 network X.X.X.0 broadcast X.X.X.255 gateway X.X.X.1 dns-nameservers 220.127.116.11
The problem comes when ethernet wire is disconnected & re-connected, or when you need to switch off/on the network interface (eth0) for any configuration [ifconfig eth0 down/up].
Just after disconnecting the ethernet wire, if a ping is done, output is:
connect: Network is unreachable
Network interface is lost. With 'ifconfig -a', there is no ip address, nor broadcast, neither network. After sometime, network interface seems to be restored, but it does not work. Ping can not be made, host is unreachable...
Doing a 'service networking restart', nothing works:
Running /etc/init.d/networking restart is deprecated because it may not re-enable interfaces Reconfiguring network interfaces...RTNETLINK answers: No such process ifup: interface eth0 already configured done
It only works after rebooting the device.
- How can I checked if this issue is due to a persistent rule or not?
- And the most obviously question, how can I solved it?