From: Carmine Scarpitta Date: Thu, 20 Feb 2025 10:48:16 +0000 (+0100) Subject: doc: Add SRv6 encapsulation behavior configuration to staticd doc X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=62465b9dcc827d927ec9d5d438e88083cc4bf88d;p=mirror%2Ffrr.git doc: Add SRv6 encapsulation behavior configuration to staticd doc This commit adds a detailed explanation on how to specify the encapsulation behavior when creating an SRv6 route. Signed-off-by: Carmine Scarpitta --- diff --git a/doc/user/static.rst b/doc/user/static.rst index 8a32460547..663496b778 100644 --- a/doc/user/static.rst +++ b/doc/user/static.rst @@ -191,6 +191,34 @@ STATIC also supports steering of IPv4 traffic over an SRv6 SID list, as shown in [..] S>* 10.0.0.0/24 [1/0] is directly connected, sr0, seg6 fcbb:bbbb:1:2:3:fe00::, weight 1, 00:00:06 + Optionally, the user can specify the SRv6 Headend Behavior to be used for encapsulation. Currently, STATIC supports the following behaviors: + + * H.Encaps + * H.Encaps.Red + + When the behavior is not specified, STATIC defaults to using H.Encaps. + +.. clicmd:: ipv6 route X:X::X:X segments U:U::U:U/Y:Y::Y:Y/Z:Z::Z:Z [encap-behavior BEHAVIOR] +.. clicmd:: ip route A.B.C.D segments U:U::U:U/Y:Y::Y:Y/Z:Z::Z:Z [encap-behavior BEHAVIOR] + +:: + + router(config)# ipv6 route 2001:db8:1:1::1/128 sr0 segments fcbb:bbbb:1:2:3:fe00:: encap-behavior H.Encaps + router(config)# ipv6 route 2001:db8:1:1::2/128 sr0 segments fcbb:bbbb:1:2:3:fe00:: encap-behavior H.Encaps.Red + + router# show ipv6 route + [..] + S>* 2001:db8:1:1::1/128 [1/0] is directly connected, ens3, seg6 fcbb:bbbb:1:2:3:fe00:: encap behavior H.Encaps, weight 1, 00:00:06 + S>* 2001:db8:1:1::2/128 [1/0] is directly connected, ens3, seg6 fcbb:bbbb:1:2:3:fe00:: encap behavior H.Encaps.Red, weight 1, 00:00:06 + + router(config)# ip route 10.0.0.1/32 sr0 segments fcbb:bbbb:1:2:3:fe00:: encap-behavior H.Encaps + router(config)# ip route 10.0.0.2/32 sr0 segments fcbb:bbbb:1:2:3:fe00:: encap-behavior H.Encaps.Red + + router# show ip route + [..] + S>* 10.0.0.1/32 [1/0] is directly connected, sr0, seg6 fcbb:bbbb:1:2:3:fe00:: encap behavior H.Encaps, weight 1, 00:00:06 + S>* 10.0.0.2/32 [1/0] is directly connected, sr0, seg6 fcbb:bbbb:1:2:3:fe00:: encap behavior H.Encaps.Red, weight 1, 00:00:06 + SRv6 Static SIDs Commands =========================