SONiC spine-leaf underlay: eBGP unnumbered on six switches, with no link addresses

The underlay of a spine-leaf fabric on SONiC: eBGP on every link with no link addresses, neighbors named by port, allowas-in for the rack partner, equal-cost paths through both spines, on Enterprise SONiC and on community SONiC.
Hand-drawn whiteboard: a SONiC spine-leaf fabric, two spines and four leaves, eBGP unnumbered underlay

On this page

In the last lesson one BGP session took an address plan: a subnet for the link, an address for each end, and a neighbor statement that named the other end's address. This fabric has eight links, and a real one has hundreds. Every one of those addresses is a chance to mistype a digit, and none of them is used for anything except bringing the session up. So they are not configured. This post builds the routing between all six switches of a spine-leaf fabric on SONiC, the underlay, with no address on any link and with neighbors named by nothing more than the port they are plugged into. The switches run Enterprise SONiC 4.6.0; the same fabric follows on community SONiC.

This is the written deep dive for the second lesson of the fabric level of the SONiC course on the LevelUP I.T. YouTube channel. It runs on the lab built in lesson 1, from the blank lab. Every output below is from the lab as the lesson recorded it.

What you'll find here

  • What the underlay is for, and the AS number plan.
  • How a BGP session runs over a link with no configured addresses.
  • The full configuration of a leaf and of a spine, line by line.
  • Reading the session: the summary, the neighbor detail, a captured router advertisement.
  • The rack partner's route that is missing, and allowas-in 1.
  • Equal-cost multipath, and one uplink taken away and restored.
  • What is stored in CONFIG_DB, and what FRR receives.
  • Community SONiC: the same fabric with link-local-only ports and a peer group in vtysh.

This post is for paying subscribers only

Subscribe to LevelUp I.T. newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox. It's free!
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!