Segment Routing over IPv6 (SRv6) with micro-SIDs (uSIDs, RFC 9800 family) is the direction most SP and DC fabrics are heading. But reading about End behaviors and locator advertisement is very different from watching an IS-IS LSP carry SRv6 TLVs across a real mesh and seeing iBGP sessions come up over loopbacks with SIDs attached. So we built the whole thing as a containerlab lab: five SONiC virtual switches (sonic-vs) forming a full-mesh core, plus three Linux/FRR edge nodes dual-homed into it. Underlay is IS-IS Level-2, IPv6-only, SRv6-enabled; the overlay is a full iBGP mesh in AS 65000 peering over loopbacks, with SRv6 uSIDs as transport.
This post covers the design, the exact versions and environment, the config gotchas we hit (there were several), a planned-vs-actual deviation table, verification results, and copy-paste commands to run it yourself.
Lab at a Glance
| Role | Nodes | Image | Function |
|---|---|---|---|
| SONiC core / PE | s1..s5 (5×) | docker-sonic-vs:latest | SRv6 transit, IS-IS L2, iBGP, SRv6 locators/SIDs |
| FRR edges | edge1..edge3 (3×) | custom frrouting/frr:latest (FRR 10.7.1) | Dual-homed edges: IS-IS SRv6 + iBGP, LAN origination, iproute2 seg6 tests |
- Underlay: IS-IS Level-2, IPv6-only, SRv6 enabled on all 16 point-to-point links — each node advertises an SRv6 locator and a static End (uN) SID.
- Overlay: iBGP AS 65000, AFI/SAFI 2/1 (IPv6 unicast), full mesh (28 sessions) among all 8 nodes, peered over Loopback0 IPv6 with
next-hop-self. - SRv6 transport: each node owns locator
2001:db8:100:NN::/64with End(uN) SID2001:db8:100:NN::1/128; deterministic path tests use iproute2encap seg6static routes on the edges. - Management: containerlab default IPv4 network
172.20.20.0/24oneth0of every node; container namesclab-srv6-mesh-<node>.

Versions & environment
Everything below is what the lab was actually verified on — pin these if you want reproducibility.
| Component | Version / detail |
|---|---|
| Host | Linux x86_64, kernel 7.0.0-44-generic, 12 vCPU, 62 GB RAM (sorry RamAltman 😉 ) |
| Kernel SRv6 | seg6 encap support present (required for iproute2 seg6 routes) |
| Docker Engine | 29.4.3 |
| containerlab | 0.83.0 (commit fb20edd45, 2026-11-07) |
| SONiC image | SONiC.master.1250767-408ffc98c — SONiC OS 13, Debian 12.15, bundled FRR 10.7.1 (loaded from the official Azure build artifact docker-sonic-vs.gz, tagged docker-sonic-vs:latest) |
| FRR edge image | custom frrouting/frr:latest rebuilt from debian:12-slim + deb.frrouting.org frr-10.7 (FRR 10.7.1) + iproute2 / iputils-ping / tcpdump / iperf3 |
| Resource footprint | 8 containers ≈ 10–12 GB RAM (5× sonic-vs at ~2 GB each, 3× FRR at ~0.3 GB), ≥ 4 vCPU, ~10 GB disk |
Why the custom FRR image? The stock frrouting/frr:latest turned out to be FRR 8.4 on Alpine 3.16 — no IS-IS SRv6, no show isis adjacency, no apt-get. FRR 10.7.1 from the official Debian repo was required for IS-IS SRv6 and static uN SIDs.
Underlying design
Topology — 16 links
- 10 core mesh links among
s1..s5(every pair connected — pairs 12, 13, 14, 15, 23, 24, 25, 34, 35, 45). - 6 edge links, each edge dual-homed:
edge1→s1,s2,edge2→s3,s4,edge3→s5,s1.
Address plan (all in 2001:db8::/32 doc space)
| Purpose | Pattern | Example |
|---|---|---|
| Loopbacks | 2001:db8:1b::N/128 (sN), 2001:db8:1b:1E::1/128 (edgeE) | s1 = 2001:db8:1b::1/128, edge1 = 2001:db8:1b:11::1/128 |
| SRv6 locators | 2001:db8:100:NN::/64 (NN = 01..05, 11..13) | s1 = 2001:db8:100:01::/64 |
| End (uN) SID | locator + ::1 → 2001:db8:100:NN::1/128 | s1 = 2001:db8:100:01::1/128 |
| Mesh p2p | 2001:db8:10:XY::/64 (X<Y), sX side ::1, sY side ::2 | s1–s2 = 2001:db8:10:12::/64 |
| Edge p2p | 2001:db8:20:SE::/64 (S=SONiC, E=edge), SONiC ::1, edge ::2 | s1–edge1 = 2001:db8:20:11::/64 |
| Edge LANs | 2001:db8:1a:E::/64 on edgeE (::1), originated into BGP | edge1 LAN = 2001:db8:1a:1::/64 |
Interface mapping — the sonic-vs quirk
Inside sonic-vs, containerlab ethN maps to SONiC Ethernet((N-1)*4):
| clab endpoint | eth1 | eth2 | eth3 | eth4 | eth5 | eth6 |
|---|---|---|---|---|---|---|
| SONiC interface | Ethernet0 | Ethernet4 | Ethernet8 | Ethernet12 | Ethernet16 | Ethernet20 |
On the FRR edges, eth1/eth2 are used as-is. This mapping matters every time you address an interface from the SONiC CLI.
IS-IS NETs and BGP mesh
- NETs: sN =
49.0000.0000.0000.000N.00, edgeE =49.0000.0000.0000.001E.00(area 49, IPv6-only, Level-2). - BGP: all 8 nodes in AS 65000, full iBGP mesh (28 sessions) over Loopback0 IPv6,
update-source Loopback0,next-hop-self, IPv6 unicast activated per neighbor, edge LAN /64s advertised vianetworkstatements. Loopbacks and locators ride in IS-IS so the SIDs are reachable underlay-wide.
Key config notes for deployment
These are the things that actually bit me — read before you deploy.
Getting the images right
# SONiC: docker-sonic-vs is NOT on Docker Hub and ghcr.io/sonic-net/sonic-vs
# was denied from this host. Use the official Azure build artifact instead:
curl -L -o docker-sonic-vs.gz <SONiC Azure artifact URL>/docker-sonic-vs.gz
docker load -i docker-sonic-vs.gz
docker tag sonic-sonic-vs:latest docker-sonic-vs:latest # whatever the load names it
# FRR edges: frrouting/frr:latest is FRR 8.4 (Alpine) — no IS-IS SRv6.
# Build FRR 10.7.1 on debian:12-slim from deb.frrouting.org and retag:
# FROM debian:12-slim
# RUN curl -s https://deb.frrouting.org/frr/keys.asc | apt-key add - && \
# echo "deb https://deb.frrouting.org/frr $(lsb_release -s -c) frr-10.7" \
# > /etc/apt/sources.list.d/frr.list && \
# apt-get update && apt-get install -y frr frr-pythontools \
# iproute2 iputils-ping tcpdump iperf3
docker build -t frrouting/frr:latest .
FRR 10.7 SRv6 syntax — locators live in zebra, not isisd
In FRR 10.7, SRv6 locators and static SIDs are configured under zebra‘s segment-routing srv6 hierarchy; isisd only references the locator:
# zebra (vtysh):
segment-routing
srv6
locators
locator LOC1
prefix 2001:db8:100:01::/64
!
static-sids
sid 2001:db8:100:01::1/128
locator LOC1
behavior uN
!
# isisd (vtysh):
router isis CORE
segment-routing srv6
locator LOC1
⚠️ vtysh pitfall: a line like interface sr0 under the srv6 config mode switches vtysh into interface submode and silently breaks every following line of your config file. Keep SRv6 config in the right modes and re-check with show running-config.
Advertising loopbacks without passive-interface
FRR 10.7 removed the router-level passive-interface command, and per-interface isis passive failed YANG validation on SONiC (mandatory area-tag). The working approach: advertise connected prefixes into IS-IS so loopbacks and locators propagate:
router isis CORE
redistribute ipv6 connected level-2 metric 10
MTU alignment
sonic-vs ports come up at MTU 9100, while containerlab veths default to 9500. That mismatch kept IS-IS adjacencies stuck in Initializing. Fix on the FRR edges:
docker exec clab-srv6-mesh-edge1 ip link set eth1 mtu 9100
docker exec clab-srv6-mesh-edge1 ip link set eth2 mtu 9100
# (same for edge2, edge3)
FRR daemons don’t auto-start in sonic-vs
The bundled FRR inside sonic-vs is not running out of the box. Start the daemons manually after deploy:
C=clab-srv6-mesh-s1
docker exec -d $C /usr/lib/frr/zebra -d
docker exec -d $C /usr/lib/frr/isisd -d
docker exec -d $C /usr/lib/frr/bgpd -d
docker exec -d $C /usr/lib/frr/mgmtd -d # if present
# then push config:
docker exec $C sudo vtysh -f /configs/frr.conf
Addressing: SONiC CLI on sN, iproute2 on edges
- On sonic-vs nodes, data-plane addresses must be set via the SONiC CLI (ConfigDB-backed), not
ip addr:docker exec clab-srv6-mesh-s1 config interface ip add Ethernet0 2001:db8:10:12::1/64 docker exec clab-srv6-mesh-s1 config interface ip add Loopback0 2001:db8:1b::1/128 - On the FRR edges, plain
ip -6 addr add ...works (and is what the bootstrap script uses, sincemgmtdisn’t running in the edge image andvtyshipv6 addressdidn’t stick there).
BGP overlay config (both node types)
router bgp 65000
bgp router-id 10.255.0.1
no bgp ebgp-requires-policy
neighbor 2001:db8:1b::2 remote-as 65000
neighbor 2001:db8:1b::2 update-source Loopback0
! ... one neighbor per other loopback (7 total) ...
address-family ipv6 unicast
neighbor 2001:db8:1b::2 activate
! ... activate each ...
network 2001:db8:1a:1::/64 ! edge LAN, edges only
exit-address-family
Planned vs. actual — every deviation and why
Mistral Large 4 (Medium effort) was used for the initial planning.
The lab as designed in the repo docs differed from what actually ran in a number of places. Full honesty table of the issues encountered by the LLM:
| # | Planned | Actual | Reason |
|---|---|---|---|
| 1 | docker pull docker-sonic-vs:latest / ghcr.io/sonic-net/sonic-vs | Loaded official Azure artifact docker-sonic-vs.gz (SONiC.master.1250767-408ffc98c) via docker load, retagged | docker-sonic-vs not on Docker Hub; ghcr.io/sonic-net DENIED; an arm64 mirror gave exec-format errors on x86_64 |
| 2 | frrouting/frr:latest from Docker Hub | Custom image: debian:12-slim + deb.frrouting.org FRR 10.7.1 + iproute2/ping/tcpdump/iperf3, retagged latest | Stock latest = FRR 8.4 on Alpine 3.16: no IS-IS SRv6, no show isis adjacency, no apt-get |
| 3 | bootstrap-edges.sh with apt-get, assumes daemons running | apk-based bootstrap applying vtysh config directly; addresses via ip -6 addr add | Alpine has no apt; script’s set -e died when daemons were already running; mgmtd not running in edge image so vtysh ipv6 address didn’t stick |
| 4 | SRv6 locator/SID syntax assumed per older docs | FRR 10.7: locators + static-sids under zebra → segment-routing srv6; isisd only does segment-routing srv6 + locator NAME reference | FRR 10.x moved SRv6 config into zebra |
| 5 | vtysh config file with interface sr0 lines | Removed/avoided sr0 submode transitions in config files | interface sr0 under srv6 mode switches vtysh submode and breaks following lines |
| 6 | passive-interface (router level) / isis passive per interface for loopbacks | redistribute ipv6 connected level-2 metric 10 | FRR 10.7 removed router-level passive-interface; per-interface form failed YANG validation on SONiC (mandatory area-tag) |
| 7 | MTU 9500 everywhere (clab veth default) | Set edge eth1/eth2 to MTU 9100 to match sonic-vs | 9100-vs-9500 mismatch kept IS-IS stuck in Initializing |
| 8 | FRR daemons auto-running in sonic-vs | Started manually: docker exec -d <c> /usr/lib/frr/<daemon> -d | sonic-vs image doesn’t launch FRR daemons by default |
| 9 | ip addr / vtysh addressing on all nodes | SONiC CLI (config interface ip add) on s1..s5; ip -6 addr add on edges | SONiC interfaces are ConfigDB-managed; edges are plain Linux |
| 10 | SONiC-native SRV6_MY_LOCATORS/SRV6_MY_SIDS tables programmed to SAI | Control-plane SRv6 via bundled FRR on all 8 nodes; SONiC SAI-VS SRv6 tables empty | sonic-vs SAI-VS lacks SRv6 SAI programming (see §6 caveat) |
Verification results
All checks below were run against the live lab and passed.
IS-IS underlay
| Node | L2 adjacencies | Expected |
|---|---|---|
| s1 | 6 Up | 4 mesh + 2 edge links |
| s2..s5 | 5 Up each | 3–4 mesh + 2 (or 1) edge links |
| edge1..edge3 | 2 Up each | dual-homed |
That’s 2×16 = 32 adjacency ends over 16 links — a clean full mesh. SRv6 TLVs (locator + SID) present in the IS-IS LSP database on all nodes.
SRv6 state
- Locators Up on all 8 nodes (
show segment-routing srv6 locator). - Static End (uN) SID
::1present per locator (2001:db8:100:NN::1/128); dynamic End.X SIDs for the p2p links also installed.
BGP overlay
- 7/7 iBGP sessions
Establishedon all 8 nodes (show bgp ipv6 unicast summary) — the full 28-session mesh. - Edge LAN prefixes
2001:db8:1a:1::/64,2001:db8:1a:2::/64,2001:db8:1a:3::/64present in the BGP IPv6 unicast tables everywhere.
Data plane (control-plane-reachable tests)
ping0% loss: s1 → all 7 other loopbacks; edge1 → edge2/edge3 LANs; edge3 → edge1 LAN.- Transit forwarding through the SONiC mesh works; IS-IS + BGP give consistent reachability end to end.
⚠️ sonic-vs SAI-VS caveat
The virtual-switch SAI backend in sonic-vs does not program SRv6 into its datapath — ASIC_DB SRV6* keys are empty. Consequence: decap of End/uN SIDs terminating on a SONiC node fails in the data plane (e.g. seg6 ping via 2001:db8:100:01::1 fails), while transit forwarding and the entire control plane (IS-IS SRv6 TLVs, locator/SID state, BGP) work fine. On real SONiC ASICs with SRv6 SAI support this decap works; in this lab, use the FRR edges for seg6 data-plane decap tests and treat sonic-vs as the underlay/control-plane fabric.







