[PATCH iproute2-next 0/2] seg6: add support for lookup attribute in SRv6 encap routes
From: Andrea Mayer <andrea.mayer@uniroma2.it>
Date: 2026-07-12 02:13:43
This series adds the optional "lookup" attribute to seg6 encap routes.
It selects the FIB table used to look up the route for the first SID,
that is the outer IPv6 destination of the encapsulated packet. The
attribute accepts a table number or a table name.
Examples:
# SID route installed in the underlay table 500
ip -6 route add fc00::100/128 via fd00::1 dev veth0 table 500
# encap route in vrf-100; the first SID is looked up in table 500
ip -6 route add cafe::1/128 vrf vrf-100 \
encap seg6 mode encap segs fc00::100 lookup 500 dev veth0
# or if the SID is already handled by the main table
ip -6 route add cafe::1/128 vrf vrf-100 \
encap seg6 mode encap segs fc00::100 lookup main dev veth0
The kernel companion series, adding the SEG6_IPTUNNEL_TABLE attribute, is
posted for net-next:
https://lore.kernel.org/all/20260711162907.6521-1-andrea.mayer@uniroma2.it/T/ (local)
The first patch adds the attribute, the second documents it in the
ip-route man page.
Thanks,
Andrea
Andrea Mayer (2):
seg6: add support for lookup attribute in SRv6 encap routes
seg6: man: document the lookup attribute for SRv6 encap routes
ip/iproute.c | 1 +
ip/iproute_lwtunnel.c | 22 +++++++++++++++++++++-
man/man8/ip-route.8.in | 16 +++++++++++++++-
3 files changed, 37 insertions(+), 2 deletions(-)
--
2.20.1