How to Move a Spoke from Observe to Steer¶
In steer mode, wgpathd moves a peer to its direct path once it has evidence and the path passes a trial. This guide switches a spoke over and checks the result.
Prerequisites¶
- The spoke runs in observe mode and the relay path works: How to configure a spoke.
- You have a way into the spoke that does not depend on
wg_mesh, such aswg_hubor the LAN. wgpathd never toucheswg_hub.
1. Switch the mode¶
uci set wgpathd.main.mode='steer'
uci commit wgpathd
service wgpathd reload
The reload keeps each peer's evidence. A peer that is already ready starts a trial on the next cycle; the others need about n_up cycles of evidence first (15 seconds with the defaults).
If you have one anchor and one or more roamers, switch the roamers first. An anchor gets its evidence from the roamers' direct traffic, so it has nothing to act on until a roamer steers.
2. Watch the transitions¶
logread -f -e wgpathd
A peer going direct logs:
peer spoke_b (SpokeBme): transition RELAY -> TRIALING reason=trial_start endpoint=[2001:db8:b::20]:51820
peer spoke_b (SpokeBme): transition TRIALING -> DIRECT reason=trial_ok endpoint=[2001:db8:b::20]:51820
reason=trial_timeout instead of trial_ok means the tunnel probe got no answer over the direct path within trial_window. The peer is back on the relay and backs off for 30 seconds, doubling on each further failure.
3. Check the status¶
service wgpathd status
A direct peer shows DIRECT, with the peer's IPv6 endpoint and (trial_ok) as the reason of its last change:
spoke_b SpokeBme DIRECT [2001:db8:b::20]:51820 12s ago (trial_ok) 2 switches
Confirm on the wire with wg show wg_mesh endpoints.
Once both spokes of a pair steer, both should settle in DIRECT. For a short time one side may be DIRECT while the other is still RELAY; both directions keep working.
4. Go back to observe¶
To stop steering, set the mode back and reload:
uci set wgpathd.main.mode='observe'
uci commit wgpathd
service wgpathd reload
Every managed peer returns to its relay endpoint on the next cycle, logged as transition DIRECT -> RELAY reason=observe_mode.
For what to do when a peer does not go direct, or keeps falling back, see How to inspect status and troubleshoot.