|
=== Pimmetje2 is now known as Pimmetje |
|
[11:43] <nibbon_> o/ |
|
[11:43] <nibbon_> I'm having some issue in installing static routes along with dhcp |
|
[11:47] <nibbon_> I'm using this config: https://paste.debian.net/hidden/33d846b3/ |
|
[11:47] <nibbon_> but apparently doesn't work :/ |
|
[11:48] <nibbon_> netplan version 0.99-0ubuntu3~18.04.5 |
|
[11:51] <slyon> nibbon_: possibly the DHCP client is overriding your static route? Try using "dhcp4-overrides.use-routes: false" (https://netplan.readthedocs.io/en/latest/netplan-yaml.html#dhcp-overrides) but beware that you won't get any routes from DHCP this way (e.g. not default gateway), so you need to define all the routes you need yourself |
|
[12:52] <nibbon_> slyon: I tried that but doesn't work; as expected it didn't take the default :/ |
|
[12:53] <nibbon_> what I don't get is why netplan doesn't install the static route(s) soon after the ones installed by the dhcp |
|
[13:00] <slyon> nibbon_: would you mind sharing your "ip route" output (after running "netplan apply")? |
|
[13:02] <slyon> also, would you mind enabling debug logging in systemd-networkd (see accepted answer here: https://superuser.com/questions/1187633/how-to-debug-systemd-networkd), and check "journalctl -u systemd-networkd" afterwards, to see what it is doing there? |
|
[13:09] <nibbon_> ip route doesn't return anything after I ran "netplan apply" |
|
[13:11] <slyon> interesting... does it show any error instead? what's the return code? I guess it should at least show your default gateway, shouldn't it? Maybe there's an issue somewhere deeper in your (netlink) stack? |
|
[13:18] <nibbon_> slyon: well, it seems I made a typo in the routes stanza |
|
[13:18] <nibbon_> in the config I had x.x.x.x/24 instead of /32 |
|
[13:19] <nibbon_> dunno why, but netplan --debug apply didn't show any error |
|
[13:44] <nibbon_> slyon: thanks for the pointers, next time I'll enable the debug logging in systemd-networkd; probably that would have led faster to a resolution |
|
[13:44] <nibbon_> either way, thanks for your assistance |
|
[13:44] <slyon> you're welcome! |
|
=== waveform_ is now known as waveform |
|
|