New issue with multiple Network interfaces

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.111
Virtualmin version 7.20.1
Webserver version REQUIRED
Related packages SUGGESTED

I face a new issue with networking in Ubuntu 22.04.4

In configurations netplan when I do netplan apply it said that gateway4 is no longer working
I have 2 interfaces and I have to use

ens160:
addresses: [‘10.155.150.16/27’]
routes:
- to: default
via: 10.155.150.2
table: 100
routing-policy:
- from: 10.155.150.16
table: 100

ens192:
addresses: [‘10.105.100.5/27’]
routes:
- to: default
via: 10.105.100.2
table: 200
routing-policy:
- from: 10.105.100.5
table: 200

But when I do that I don’t get connection to the internet
I installed e vswitch because the netplan was looking for it and still nothing

netplan try

I get this

WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

also

WARNING **: 04:47:39.633: Problem encountered while validating default route consistency.Please set up multiple routing tables and use routing-policy instead. Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in ens192 but also in ens160

Anyone can find the way so I can fix it

Would configuring with nmtui make things easier?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.