/srv/irclogs.ubuntu.com/2023/10/08/#netplan.txt

RockethubI'm trying to follow this tutorial to set up netplan, however I have an issue. When attempting to set up two routes as instructed, I get the following error, multiple times, in quick succession:11:26
RockethubProblem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.11:26
RockethubError: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in eth0 but also in eth011:26
Rockethub(Apologies for the unformatted stuff in here btw, Idk how to format stuff in this IRC.)11:26
RockethubHere is the link to that tutorial btw: https://github.com/elitetheespeon/scripts/blob/main/full_wg_tunnel_remote_example.sh11:26
RockethubHere is my current configuration:11:26
Rockethub# /etc/netplan/01-netcfg.yaml11:26
Rockethubnetwork:11:26
Rockethub  version: 211:26
Rockethub  renderer: networkd11:26
Rockethub  ethernets:11:26
Rockethub    eth0:11:26
Rockethub      addresses:11:26
Rockethub        - 157.245.132.105/3211:26
Rockethub      routes:11:26
Rockethub        - on-link: true11:26
Rockethub          to: 0.0.0.0/011:26
Rockethub          via: 157.245.128.111:26
PeGaSuSI think you're missing a "-" before "to:". also, why not "routes > - to: default > via: <gateway>"?11:43
RockethubDoing that generates the error again12:06
Rockethub# /etc/netplan/01-netcfg.yaml12:06
Rockethubnetwork:12:06
Rockethub  version: 212:06
Rockethub  renderer: networkd12:06
Rockethub  ethernets:12:06
Rockethub    eth0:12:06
Rockethub      addresses:12:06
Rockethub        - 157.245.132.105/3212:06
Rockethub      routes:12:06
Rockethub        - on-link: true12:06
Rockethub          to: default12:06
Rockethub          via: 157.245.128.112:06
Rockethub        - to: 154.29.72.128/3212:06
Rockethub          via: 157.245.128.112:06
Rockethub          on-link: true12:06

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!