Making one interface depend on another to sequence start-up?

I have created an environment where I have an underlay network running on my PPPoE wan but all my external-facing services are running on an overlay network. This is created "on top" of the underlay with an L2TP connection to a second ISP, with a higher priority (lower "metric" in the interface definition) than my underlay wan
.
But, I also have some wireguard tunnels that operate in a pseudo-server mode. And I would really like to find some way to ensure that I don't end up with race conditions where they could initially bind to the underlay network. Ideally I would like to be able to delay OpenWRT from attempting to bring them up until after the L2TP connection is fully established.

Does anyone have any suggestions on how to go about that?

remove the bring up on boot check box for the interfaces you want to delay.

simply start them manually after X seconds/mins, or use the hotplug to trigger an interface start when there's an event - https://openwrt.org/docs/guide-user/base-system/hotplug.

2 Likes

D'Oh! I think I've just reached the point where I "can't see the wood for the trees" !

Thanks @frollic - perfect solution.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.