kjetilho | hmm. how do I specify a route with a target device rather than a via value? this is what I need to express in Netplan: `ip -6 route add 2a02:c0:1002:10::/64 dev eth1 table 1` | 09:23 |
---|---|---|
kjetilho | "The routes block defines standard static routes for an interface. | 09:26 |
kjetilho | At least to and via must be specified." | 09:26 |
schopin | kjetilho: hi :-). Just to clarify, you want to move the routes of a subnetwork that's directly reachable from eth1 into rt 1, right? | 09:31 |
kjetilho | well, I need to duplicate that route due to a routing policy which switches routing table for traffic from 2a02:c0:1002:10::/64 | 09:32 |
kjetilho | without it, traffic to the local network is routed at the default gateway, which just sends a redirect | 09:33 |
kjetilho | (the default gateway in table 1) | 09:33 |
schopin | kjetilho: I think https://bugs.launchpad.net/netplan/+bug/1789862 would solve this as well. | 09:34 |
kjetilho | seems like my exact problem, yes | 09:35 |
kjetilho | hmm, what does that PR do, though? I am running 0.102-0ubuntu1~20.04.2 | 09:37 |
schopin | OK, so following the various links, it seems `to: 2a02:c0:1002:10::/64 \n scope: link \n table: 1` *should* do what you request. | 09:38 |
kjetilho | yes, just tried a debug run, it is accepted | 09:39 |
kjetilho | must pick up some nerve to try it. hang on ;) | 09:39 |
kjetilho | looks good! | 09:40 |
schopin | kjetilho: can you confirm that the table is taken into account? | 09:40 |
schopin | (the reason why the above bug remained open) | 09:40 |
kjetilho | yes, it is added to the correct table | 09:41 |
kjetilho | so there are two PRs on the horizon: one for the reference manual, and one for the error message | 09:41 |
kjetilho | "Error in network definition: unicast route must include both a 'to' and 'via' IP" | 09:42 |
schopin | Looking forward to it :) | 09:42 |
kjetilho | do you have the git-links handy perchance? | 09:42 |
kjetilho | duh | 09:43 |
kjetilho | I have it on my screen since I read the PR :) | 09:43 |
kjetilho | hrm. put a "global" into that error message? the hint to use a different scope may be a bit subtle, but ... | 09:45 |
schopin | We can always nitpick on the wording on the PR itself ;-) | 09:47 |
kjetilho | yep | 09:47 |
schopin | as for the link, for future reference you'll find one in the channel description. | 09:47 |
kjetilho | haha | 09:48 |
kjetilho | *really* staring me in the eye | 09:48 |
schopin | slyon: (or whoever is +o here) would it be possible to add a link to the lp bug tracker as well? | 09:48 |
slyon | schopin: yes, that's a good idea! | 09:53 |
=== slyon changed the topic of #netplan to: netplan.io 0.103 | Backend-agnostic network configuration in YAML | https://netplan.io | https://github.com/canonical/netplan | https://bugs.launchpad.net/netplan | ||
schopin | kjetilho: for the record, which backend are you using? | 09:55 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!