| 2 Jun 2025 |
K900 | And it's got a management interface | 08:09:30 |
K900 | That's on the same physical link as the rest of the link | 08:09:51 |
K900 | But not the same subnet | 08:09:55 |
K900 | How the fuck do I make it reachable from inside the router | 08:10:11 |
uep | i have something like that for my random shitful HFC cablemodem. For about 120s after boot, it's visible via a 192.168.100.1/24 address, and it goes away again if not poked in that window (and sometimes if it is) | 08:16:03 |
uep | so I just have a secondary address on the router in that subnet | 08:16:20 |
uep | as well as the dhcp and dhcpv6 for the service addresses | 08:16:44 |
uep | oh, and a nat rule because of course it doesn't have routes to the rest of my internal networks | 08:17:12 |
K900 | I can't figure out how to get networkd to both do DHCP and have a static prefix on the same interface | 08:17:38 |
K900 | Is the problem | 08:17:45 |
K900 | I've set up the actual thing to listen on 172.16.0.1/24 which is a prefix nothing will ever touch | 08:18:20 |
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 |