I had a (headless) server running 18.04LTS. On it ran some standard software: Apache, Docker, SSH, etc.
do-release-upgrade and after a seemingly normal set of questions and actions, a reboot was required. After the reboot, I lost all connection to it. Sites didn't load, SSH timed out. Ubuntu 19.10 is installed, but nothing works.
Via the VPS hoster interface I am able to log in from a browser.
How can I configure my server to be connected to internet (without being connected to internet)
- I boot, login,
ip ashows for eth0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 02:xx:xx:xx:xx:27 brd ff:ff:ff:ff:ff:ff
ip link set dev eth0 upthen
ip a s eth0changes to
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 02:xx:xx:xx:xx:27 brd ff:ff:ff:ff:ff:ff inet6 fe80:xx:xx:xx:xx:xx:xxx/64 scope link valid_lft forever preferred_lft forever
- Adding the network with
ip addr add [my ipv4 address]/22 dev eth0changes it to
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 02:xx:xx:xx:xx:27 brd ff:ff:ff:ff:ff:ff inet [my ipv4 address]/22 scope scope eth0 valid_lft forever preferred_lft forever inet6 fe80:xx:xx:xx:xx:xx:xxx/64 scope link valid_lft forever preferred_lft forever
network-manager is broken or not fully installed. I tried this because at some point, I regained connectivity via
dkpg-reconfigure network-manageronly to lose it some minor updates and reboots later.
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
# [Contains only comments, no config]
does not exist
More things I tried
- Installing network-manager or dhclient from cache: There are no deb-files in /var/cache/apt/archives. There's still a
- Trying to see the difference between no connection and not resolving the DNS. I used
echo 1234 | netcat -v 126.96.36.199 80since
pingis missing, and got a
Network is unreachable, so it's not just the DNS.
- Mounting a volume, so I can load missing files that way. Sadly, couldn't
nfs-commonisn't installed, it seems.
- Querying the networking service:
Unit networking.service could not be found.
- Checking the status of
systemd-networkd.service: it's active and running, but in logs it only reports
eth0: Gained IPv6LLthen
Enumeration completed. Nothing on IPv4. Will check that German wiki page now.