I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary interface
ens192 is working properly.
Here is my Netplan configuration:
network: version: 2 ethernets: ens160: addresses: - 10.0.0.151/16 dhcp4: false routes: - to: 10.0.0.0/16 via: 10.0.0.1 table: 101 routing-policy: - from: 10.0.0.0/16 table: 101 ens192: addresses: - 192.168.0.213/24 dhcp4: false gateway4: 192.168.0.1 nameservers: addresses: - 184.108.40.206 - 220.127.116.11 routes: - to: 192.168.0.0/24 via: 192.168.0.1 table: 102 routing-policy: - from: 192.168.0.0/24 table: 102
What am I missing to make both interfaces work properly? With this configuration I can reach the IP on
ens160 from hosts within the subnet, but not other subnets that can route to hosts on that subnet. Also, when I
ping that IP from other hosts in the same subnet, I get a duplicate response on every single ping request.