[18:10] <brotherdust> Hi folks! Hope you are all well today! I'm trying to configure netplan to use an _interface_ route. Here's the /etc/network/interfaces equivalent:
[18:10] <brotherdust> auto enp196s0f0np0
[18:10] <brotherdust> iface enp196s0f0np0 inet static
[18:10] <brotherdust>         mtu 9216
[18:10] <brotherdust>         address 172.16.1.3/24
[18:10] <brotherdust>         pointopoint 172.16.1.2
[18:10] <brotherdust> And here's what seems to be the netplan equivalent:
[18:10] <brotherdust> enp196s0f0np0:
[18:10] <brotherdust>   addresses:
[18:10] <brotherdust>   - 172.16.1.3/32
[18:10] <brotherdust>   routes:
[18:10] <brotherdust>   - to: 172.16.1.1/32
[18:10] <brotherdust>     on-link: true
[18:10] <brotherdust> However, when I try to apply, I get this:
[18:10] <brotherdust> unicast route must include both a 'to' and 'via'
[18:10] <brotherdust> I tried adding a via to the configuration, and it applies, but the route is constructed improperly. Any thoughts on how to get the netplan to cooperate?
[18:12] <brotherdust> In other words, doing this:
[18:12] <brotherdust> enp196s0f0np0:
[18:12] <brotherdust>   addresses:
[18:12] <brotherdust>   - 172.16.1.3/32
[18:12] <brotherdust>   routes:
[18:12] <brotherdust>   - to: 172.16.1.1/32
[18:12] <brotherdust>     via: 172.16.1.1
[18:12] <brotherdust>     on-link: true
[18:12] <brotherdust> Results in this route entry:
[18:12] <brotherdust> 172.16.1.1 via 172.16.1.1 dev enp196s0f0np0 proto static onlink
[18:12] <brotherdust> Which is _not_ an interface route. It should look like this:
[18:12] <brotherdust> 172.16.1.1 via dev enp196s0f0np0