I want to add a link local route to an interface. Config looks like this: network: ethernets: ens192: addresses: - 172.16.4.131/24 # gateway4: 172.16.4.1 nameservers: addresses: [] search: [] optional: true routing-policy: - from: 172.16.4.0/24 table: 200 routes: - to: 0.0.0.0/0 via: 172.16.4.1 table: 200 metric: 1 ens224: addresses: - 10.0.0.31/24 gateway4: 10.0.0.1 nameservers: addresses: - 10.3.6.11 - 10.3.6.12 search: - feusi-root.ch optional: true version: 2
Unfortunately this means I cannot reach 172.16.4.0/24
I now add this route to ens192:
- to: 172.16.4.0/24 scope: link metric: 1
But netplan apply fails with: "unicast route must include both a 'to' and 'via' IP" How should i give a "via" to a route with the scope link?
I want to add a link local route to an interface.
addresses:
nameserver s:
addresses: []
search: []
optional: true
routing- policy:
table: 200
via: 172.16.4.1
table: 200
metric: 1
addresses:
gateway4: 10.0.0.1
nameserver s:
addresses:
search:
optional: true
Config looks like this:
network:
ethernets:
ens192:
- 172.16.4.131/24
# gateway4: 172.16.4.1
- from: 172.16.4.0/24
routes:
- to: 0.0.0.0/0
ens224:
- 10.0.0.31/24
- 10.3.6.11
- 10.3.6.12
- feusi-root.ch
version: 2
Unfortunately this means I cannot reach 172.16.4.0/24
I now add this route to ens192:
- to: 172.16.4.0/24
scope: link
metric: 1
But netplan apply fails with: "unicast route must include both a 'to' and 'via' IP"
How should i give a "via" to a route with the scope link?