I have multiple Ubuntu servers in the same network with two network interfaces. One for public Internet access (80.90.100.40/29), one for internal network communication (192.168.1.35/28). All of the servers use static IP's.
Ones with Ubuntu 18.04 LTS uses network/interfaces have no problem with static IPS. They just connect. Interfaces configuration is below:
auto lo
iface lo inet loopback
auto ens160
iface ens160 inet static
address 80.90.100.45
netmask 255.255.255.248
network 80.90.100.40
broadcast 80.90.100.47
gateway 80.90.100.41
dns-nameservers 8.8.8.8 8.8.4.4
dns-search local
auto ens192
iface ens192 inet static
address 192.168.01.45
netmask 255.255.255.248
This configuration works like a charm. I added a new server to my network with Ubuntu 22.04 LTS, which uses Netplan, and set my network configuration like below:
network:
ethernets:
ens160:
dhcp4: no
addresses:
- 80.90.100.44/29
routes:
- to: default
via: 80.90.100.41
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
search: [local]
ens192:
dhcp4: no
addresses:
- 192.168.1.38/28
routes:
- to: 192.168.1.32/28
via: 192.168.1.33
version: 2
While the servers with Ubuntu 18.04 LTS with interfaces work without a problem, the server with Ubuntu 22.04 LTS with Netplan always disconnects. Ping packages get lost. Once they got lost, I try to traceroute to 8.8.8.8 DNS, and the output is below;
.
But once connection comes back, traceroute works perfect. When send ping from 22.04 LTS, 25-35% of packages are lost.
As you may guess, this is really annoying since I'm trying to setup a web application.
So far I've disabled IPv6 for Ubuntu 22.04 LTS with Netplan, but problem still continues. There are no IP overlaps. And there are no problems with internal network. Only the public access is affected. Any help is appreciated.