Network not working on boot
- 4 months 2 weeks ago
I installed AL into a droplet on digitalocean following these steps: https://github.com/bontibon/digitalocean-alpine
The droplet is working fine. But when I reboot it, I have no access to it from outside of digitalocean console.
After installing AL I issued
rc-update add networking boot
rc-status -a directly after a reboot shows
Runlevel: default acpid [ crashed ] sshd [ started ] crond [ started ] chronyd [ started ] Runlevel: nonetwork Runlevel: sysinit Runlevel: boot swap [ started ] urandom [ started ] hostname [ started ] networking [ started ] keymaps [ started ] Runlevel: shutdown Dynamic Runlevel: hotplugged Dynamic Runlevel: needed/wanted hwclock [ started ] sysfs [ started ] devfs [ started ] mdev [ started ] fsck [ started ] root [ started ] localmount [ started ] klogd [ started ] syslog [ started ] Dynamic Runlevel: manual
But pinging to and from the machine doesn't work.
I have to do
rc-service networking restart to make networking work. After that I can access the machine from outside via ssh.
In the logs I can't find anything useful. rc-status -a shows that acpid service crashed. But I can't find anything related in dmesg or in the logs.
alpine:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 128.199.76.*** (changed for privacy reasons) netmask 255.255.0.0 gateway 188.8.131.52
alpine:~$ cat /etc/resolv.conf nameserver 184.108.40.206 nameserver 220.127.116.11
Any pointers on how to solve this would be much appreciated.