[11:26] <Rockethub> I'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] <Rockethub> Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
[11:26] <Rockethub> Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in eth0 but also in eth0
[11:26] <Rockethub> (Apologies for the unformatted stuff in here btw, Idk how to format stuff in this IRC.)
[11:26] <Rockethub> Here is the link to that tutorial btw: https://github.com/elitetheespeon/scripts/blob/main/full_wg_tunnel_remote_example.sh
[11:26] <Rockethub> Here is my current configuration:
[11:26] <Rockethub> # /etc/netplan/01-netcfg.yaml
[11:26] <Rockethub> network:
[11:26] <Rockethub>   version: 2
[11:26] <Rockethub>   renderer: networkd
[11:26] <Rockethub>   ethernets:
[11:26] <Rockethub>     eth0:
[11:26] <Rockethub>       addresses:
[11:26] <Rockethub>         - 157.245.132.105/32
[11:26] <Rockethub>       routes:
[11:26] <Rockethub>         - on-link: true
[11:26] <Rockethub>           to: 0.0.0.0/0
[11:26] <Rockethub>           via: 157.245.128.1
[11:43] <PeGaSuS> I think you're missing a "-" before "to:". also, why not "routes > - to: default > via: <gateway>"?
[12:06] <Rockethub> Doing that generates the error again
[12:06] <Rockethub> # /etc/netplan/01-netcfg.yaml
[12:06] <Rockethub> network:
[12:06] <Rockethub>   version: 2
[12:06] <Rockethub>   renderer: networkd
[12:06] <Rockethub>   ethernets:
[12:06] <Rockethub>     eth0:
[12:06] <Rockethub>       addresses:
[12:06] <Rockethub>         - 157.245.132.105/32
[12:06] <Rockethub>       routes:
[12:06] <Rockethub>         - on-link: true
[12:06] <Rockethub>           to: default
[12:06] <Rockethub>           via: 157.245.128.1
[12:06] <Rockethub>         - to: 154.29.72.128/32
[12:06] <Rockethub>           via: 157.245.128.1
[12:06] <Rockethub>           on-link: true