How to use linux kernel I compiled?

If you’re able to ping 8.8.8.8 but not google.com in linux 5.2 then I was having the same issue.

What has been working for me for some time, is disabling systemd-resolved and rebooting.
sudo systemctl disable systemd-resolved .

Also if double IP is a problem for you, you can remove the /etc/systemd/network/20-wired.network file. It seems it’s not really needed anymore.

Adviced by strit