Version
VyOS 2026.11 (release train scutum, vyos-1x 1.6dev0-832-g1e984ba48) with vpp 25.10.0-65~vyos20261019233412.fd0640e66, FRR 10.7.1, kernel 6.18.65-1-vyos, Intel X710 (DPDK).
Summary
When a static route X/32 interface <if> reaches VPP while VPP already has a neighbour (ARP) entry for X, the FIB entry X/32 gets an extra exclusive drop path with preference 0 in the lcp-rt-dynamic source, next to the real attached-nexthop path (preference 20). The drop path wins, so all transit traffic to X is dropped. Traffic to the router itself still works, which makes the failure easy to miss. Removing the route leaves the drop path behind, so the host stays black-holed until VPP restarts, even though the connected subnet alone would reach it.
The bug is in the VPP FIB and is fixed upstream by FDio/vpp commit 32ef71699b424dbdd7e08c6feec55d78d4aa5027 "fib: swap in the paths of a source new to the entry" (master, 2026-11-23), backported to stable/2610 as 2ac83b35d72ae26b0f00c49bc196c09298322923:
https://github.com/FDio/vpp/commit/32ef71699b424dbdd7e08c6feec55d78d4aa5027
https://github.com/FDio/vpp/commit/2ac83b35d72ae26b0f00c49bc196c09298322923
vpp 25.10 in VyOS and vyos-vpp-patches do not contain it. Please backport the commit (with its tests) to the VyOS VPP 25.10 patch set.
Steps to reproduce (plain VyOS config, tested)
- set interfaces ethernet eth0 vif 12 address 192.0.2.1/24 (eth0 is a VPP interface), commit.
- Host 192.0.2.86 on VLAN 12 pings 192.0.2.1, so VPP learns the neighbour. Transit to the host works through the connected /24.
- set protocols static route 192.0.2.86/32 interface eth0.12, commit. The kernel gets 192.0.2.86 nhid 167 dev eth0.12 proto static metric 20.
- vppctl show ip fib 192.0.2.86/32 (abridged):
192.0.2.86/32
lcp-rt-dynamic refs:1
path:[113] pl-index:79 ip4 weight=1 pref=0 exclusive
path:[114] pl-index:79 ip4 weight=1 pref=20 attached-nexthop
adjacency refs:1
path:[96] pl-index:26 ip4 weight=1 pref=0 attached-nexthop
forwarding: unicast-ip4-chain
[@0]: dpo-drop ip4Transit traffic to the host: 100 % loss. Ping from the host to 192.0.2.1 still works.
- delete protocols static route 192.0.2.86/32, commit. The kernel route is gone, but the FIB entry keeps the drop path (abridged):
192.0.2.86/32
lcp-rt-dynamic refs:1
path:[111] pl-index:27 ip4 weight=1 pref=0 exclusive
adjacency refs:1
path:[96] pl-index:26 ip4 weight=1 pref=0 attached-nexthop
forwarding: unicast-ip4-chain
[@0]: dpo-drop ip4Transit to the host stays at 100 % loss. Even after deleting the eth0.12 VLAN interface itself, 192.0.2.86/32 remained in the FIB; only a VPP restart (or vppctl lcp resync when the host has no neighbour entry) clears it.
Control cases on the same setup:
- Route added before the host resolves (192.0.2.85): healthy, transit works.
- Route with a gateway for a live host (192.0.2.87): set protocols static route 192.0.2.87/32 next-hop 192.0.2.87 interface eth0.12 installs via 192.0.2.87 dev eth0.12; the FIB entry has only the real path, transit works, also after removing and re-adding the route.
The same happens with one host per VLAN on unnumbered VLANs (set interface unnumbered eth0.12 use eth0 applied with vppctl): reproduced 7 more times (route added for a live host; route removed and re-added in separate commits; static ARP via set protocols static arp plus route, in any order and also in one commit). There, once the host's ARP cache expires, VPP also stops answering its ARP requests (arp-reply error "IP4 source address not local to subnet"), so the host loses the router completely. A link flap does not trigger the bug. lcp param route-no-paths off makes no difference.
Root cause (VPP stable/2510)
- lcp_router_route_add: an interface-only path is attached, so entry_flags |= FIB_ENTRY_FLAG_ATTACHED; a new route goes to fib_table_entry_path_add2(). FRR staticd installs routes with proto 196 (RTPROT_ZSTATIC, shown by iproute2 as "static"), which is above RTPROT_STATIC, so the source is lcp-rt-dynamic.
- fib_table_entry_path_add2: the entry already exists (adj-fib of the resolved neighbour), so fib_entry_path_add() is called instead of fib_entry_create().
- fib_entry_src_action_path_add: the source is not yet on the entry, so it is added with a drop DPO; fib_entry_src_api_add with flags that are not NONE but map to no path-list flag (here ATTACHED) creates a special path-list with that drop DPO (exclusive, preference 0).
- The real path is then added to that path-list (fib_path_list_copy_and_path_add) instead of replacing it, and the drop path wins. lcp_router_route_del removes only the real path, so the drop path stays orphaned.
- A route with a gateway is not attached, so the flags are NONE and no drop path-list is created (matches the 192.0.2.87 control).
The upstream fix swaps in the paths for a source that is new to the entry, as fib_entry_create does (8 lines in src/vnet/fib/fib_entry_src.c, plus FIB and linux-cp tests). Its commit message describes this exact case (linux-cp mirroring a kernel dev route onto the adj-fib of a resolved neighbour).
Impact
- An interface route added for a live host, or removed and re-added in separate commits, silently black-holes it until VPP restarts, also after the route is removed again.
- In our tests a static ARP entry together with an interface route for the same host was always black-holed.
- vppctl lcp resync re-adds all routes while the neighbours exist and black-holes every live host that has an interface /32 route (tested). Any netlink read error other than EAGAIN, including an overflow, starts the same resync automatically (lcp_nl.c: NL_EVENT_ERR → NL_STATUS_SYNC; T9481 notes that vppctl lcp resync runs the same sequence as an overflow). On a router with a full table, one netlink overflow could therefore black-hole all such hosts at once (not reproduced).
Workaround until fixed
Use next-hop <host> interface <if> instead of interface <if> where the host is inside a subnet configured on that interface (tested). Otherwise add the route before the host resolves. For unnumbered interfaces the next-hop form cannot be configured, because the kernel interface has no address and the VyOS CLI has no onlink option.
A black-holed host can be repaired without a VPP restart by changing the route type in single commits (tested on a plain interface and on an unnumbered VLAN): interface <if> → blackhole in one commit, then blackhole → interface <if> in the next. ip monitor route shows each change as a single RTM_NEWROUTE without a preceding delete, i.e. a replace; linux-cp then takes its is_replace path and calls fib_table_entry_update(), which swaps out the whole path-list including the stale drop path. Changing the route's distance does not help (FRR does not reinstall the kernel route). The same two commits also add a route safely for a host that is already live: blackhole first, then blackhole → interface <if> (tested on an unnumbered VLAN; about 1 s of loss with back-to-back commits). A VPP restart (a commit under vpp settings) also clears the drop paths.