Answer the question
In order to leave comments, you need to log in
Ubuntu server 20.04 (netplan). Two network cards. Both over DHCP. How to fix it to work?
Owing to insuperable circumstances on the server (virtual) 2 network interface cards are used. eth0 and eth1 both set to dhcp in netplan
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
dhcp6: true
eth1:
dhcp4: true
dhcp6: true
Answer the question
In order to leave comments, you need to log in
in the first approximation, it was enough to change the metric on the domain network card
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
dhcp4-overrides:
route-metric: 100
eth1:
dhcp4: true
dhcp4-overrides:
route-metric: 110
# ip route
default via 10.0.26.1 dev eth0 proto dhcp src 10.0.26.80 metric 100
default via 192.168.25.1 dev eth1 proto dhcp src 192.168.25.88 metric 110
10.0.26.0/24 dev eth0 proto kernel scope link src 10.0.26.80
10.0.26.1 dev eth0 proto dhcp scope link src 10.0.26.80 metric 100
192.168.25.0/24 dev eth1 proto kernel scope link src 192.168.25.88
192.168.25.1 dev eth1 proto dhcp scope link src 192.168.25.88 metric 110
"My network is crooked on the server, there is no root, nothing can be changed, what should I do?"
Do you understand how absurd it sounds?
Z.Y. - If you have the opportunity to prescribe a route, then there is an opportunity to demolish an extra gateway.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question