Can no longer reach the internet

Solution 1:

It seems that you have 2 IP addresses assigned to enp3s0 interface:

inet 10.0.0.23/24 brd 10.0.0.255 scope global enp3s0

inet 192.168.1.107/24 brd 192.168.1.255 scope global dynamic noprefixroute enp3s0

The solution is to remove the fixed ip and just leave the dynamic one.

How to do this it depends on wether you have a server box or a desktop.

1.- SERVER: If you have a server you can use netplan. Go to /etc/netplan and "sudo nano" de yaml file.

It should look like:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: yes
      dhcp6: yes
      addresses: [10.0.0.23, ]
      gateway4:  10.0.0.1
      nameservers:
              addresses: [8.8.8.8, 8.8.4.4]

You should change it to this:

network:
 version: 2
 renderer: networkd
 ethernets:
   enp3s0:
     dhcp4: yes
     dhcp6: yes

Then run:

    sudo netplan apply

And to check everything is ok

    ifconfig -a

2.- DESKTOP: If you have a desktop, your yaml file should look like

network: version: 2 renderer: NetworkManager

That means that NetworkManager is taking care of the config and changes. You can use the nmcli command line to modify config, but for simplicity sake, you can go to the status bar (next to the clock) select networked inteface and configuration. There in wired section, click on the wheel and you should see the ethernet configuration. Tere you should change the ipv4 and ipv6 tabs and set automatic (dhcp) as the only option.

Solution 2:

I got this problem as well and all I did to solve it was changing my mac address. I don't know if that applies to you but it's worth a try

  1. run sudo apt install macchanger

  2. it will prompt asking you if you want a new mac everytime you connect. If you select no, you will get your default mac everytime you connect. I would suggest yes

  3. turn of your wifi/ethernet and run macchanger -r enp3s0 this can be any network device you use. Then turn it on again

Hope it helps, as I said, I'm not sure if it applies to you but it certainly fixed it for me.