Static IP with Netplan causes slow internet speed (Ubuntu Server 20.04)
Solution 1:
Ok, so, after a few talks with some friends, we found out the problem. It was quite simple actually.
The problem was with the gateway. when I used the command netstat -rn, it returned:
aiec@camera02:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.253.1 0.0.0.0 UG 0 0 0 eno1
0.0.0.0 192.168.253.254 0.0.0.0 UG 0 0 0 eno1
192.168.253.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
192.168.253.254 0.0.0.0 255.255.255.255 UH 0 0 0 eno1
The gateway had to finish with .254, insted of .1.
So, the correct way to use the netplan for me was to type gateway4: 192.168.253.254.
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.253.188/24]
gateway4: 192.168.253.254
optional: false
nameservers:
addresses: [8.8.8.8,8.8.4.4]
version: 2
Now, my netstat -rn, return:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.253.254 0.0.0.0 UG 0 0 0 eno1
192.168.253.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
And that's it. Thanks for those who tried to help me.