I'm running Kubuntu 20.10 on a desktop machine. Previously I had set my Ethernet to use a manual IP address (192.168.0.114). On the new network the subnet is 192.168.1.XXX, so I tried to set the network adapter to automatic and hit Save in the Network Settings screen. After disconnecting the cable and reconnecting it, it reverts back to the Manual IP address. Also when I run hostname -I
it shows the old IP address.
Not sure what is going on here. Is there a way to completely wipe the network settings? Or is there a file I can edit to change the network settings rather than through the GUI?
Result of cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
Result of cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 linuxamd
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
cat /etc/hostname
linuxamd
hostname -I
192.168.0.114 192.168.1.83 2600:1700:5ef0:67b0:5771:7bd0:b3d9:a26f 2600:1700:5ef0:67b0:febd:52a0:bd99:a94a 2600:1700:5ef0:67b0::2e 2600:1700:5ef0:67b0:f7c6:4441:3233:87ba 2600:1700:5ef0:67b0:6aba:cca1:cc53:2a06
EDIT (Sep 11, 2021): I can get it to work by running sudo dhclient -r
and then sudo dhclient
. It will still show the old static IP address and the new one. But I have to do that every time I restart the machine. So still not a good solution.