| 2 Jun 2025 |
uep | yeah, can't help there, sorry.. all mikrotik here, for better or worse | 08:18:24 |
K900 | And I can get to it if I add the route manually | 08:18:30 |
uep | (3 external links, all on their own routers, router backplane with ospf, 4 internal routers to different things, vpn links, etc etc.) | 08:20:25 |
uep | i would imagine networkd can do it, or can certainly do multiple addresses.. perhaps with dhcp is harder?) | 08:22:16 |
uep | * i would imagine networkd can do it, or can certainly do multiple addresses.. perhaps with dhcp is harder? | 08:22:34 |
K900 | OK I think I'm an idiot | 08:23:04 |
uep | in which case some macvlan hackery may be in order? | 08:23:04 |
K900 | I think it works if I specify both DHCP and static address IN THE SAME NETWORK FILE | 08:23:19 |
uep | I.. would hope that shouldn't matter, but am perhaps unsurprised if it does | 08:24:00 |
uep | oh.. i guess if it only uses the config from the highest priority file? ok, yeah | 08:25:11 |
uep | ugh | 08:25:25 |
K900 | It just overrides | 08:25:38 |
K900 | Stackoverflow says it should work though | 08:27:39 |
K900 | I wonder if I just need to bonk it harder | 08:27:45 |
K900 | OK yeah for some reason networkctl reconfigure fucks it up | 08:28:48 |
K900 | But networkctl down followed by networkctl up does the right thing | 08:28:53 |
uep | oof | 08:29:19 |
uep | at least the macvlan hack is available in case having it as a separate interface is helpfu | 08:30:38 |
uep | * at least the macvlan hack is available in case having it as a separate interface is helpful | 08:30:41 |
uep | (for this or other reasons) | 08:31:18 |
K900 | I guess | 08:31:54 |
K900 | Anyway time to grafanize that shit | 08:31:58 |
ElvishJerricco | yea only one network file applies to each interface. Any other that would match it is just completely irrelevant | 08:42:44 |
ElvishJerricco | I forget if it's the first or last when sorting the network files by name that applies | 08:43:13 |
ElvishJerricco | the way to have separate files apply to the same interface is to use drop-ins for the same foo.network name | 08:43:44 |
ElvishJerricco | course that's not super relevant for nixos | 08:44:03 |
emily | for a router that needs to do PPPoE to get a WAN link, which is likely to be less painful, systemd-networkd and orchestrating pppd as a separate service, or just using NetworkManager which supports it natively? | 11:29:15 |
K900 | I don't know how well it works with networkd | 11:29:49 |
K900 | But I know pppd standalone is CURSED | 11:29:53 |
hexa | "60-ppp0" = {
matchConfig.Type = "ppp";
networkConfig = {
IPv6AcceptRA = true;
DHCP = "ipv6";
KeepConfiguration = true;
};
dhcpV6Config = {
WithoutRA = "solicit";
PrefixDelegationHint = "::/56";
};
ipv6SendRAConfig = {
Managed = true;
};
linkConfig.RequiredForOnline = "routable";
| 11:32:43 |