Upgraded to Debian 9.12, now have no network connection
Jun 15
When I upgraded my cloud server from Debian 8 to Debian 9.12, I lost all network connectivity. I can neither ping the server nor ping anything from the server.
If I try to add a default gateway, I get SIOCADDRT: Network is unreachable
If I type netstat -anr, I get an empty list
There may be other obvious things I should try, but I am clearly not that knowledgeable.
Thanks for any help or guidance.
ip a
1: lo: <LOOPBACK,UP,LOWER_UP. mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: ens3: <BROADAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:16:3c:4e:a4:c8 brd ff:ff:ff:ff:ff:ff
/ect/network/interfaces contains:
source /etc/network/interfaces.d/*
#The loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
allow-hotplug enp0s3
iface enp0s3 inet dhcp
There are no files in /etc/network/interfaces.d/*
1 answer
Accepted answer · original discussion
Jun 15
It seems that during the upgrade process your network device got renamed. Change every occurrence of enp0s3 to ens3 in /etc/network/interfaces, and it should get the IP address from the DHCP server.
2 question comments
Use comments to ask for clarification. Post a solution as an answer.
Jun 15