EVPN-VXLAN Fabric with Automated, Verified Changes

Build a routed leaf-spine fabric with eBGP unnumbered, BFD and equal-cost paths, stretch two tenant segments across racks with EVPN-VXLAN, route between them only through a stateful nftables firewall, and run a dual-provider internet edge with explicit preference, filtering and NAT. Change all of it only through one validated intent file: render every router's configuration, check it offline, plan against the running network, apply, verify with real traffic and roll back automatically, locally and in GitHub Actions.

Network Engineer. Advanced.

What you will build and explain

  • Design an address and ASN plan for a two-spine, three-leaf fabric and enforce it with automated validation of the whole intent.
  • Build an eBGP unnumbered underlay with BFD and two equal-cost paths between racks, and measure how quickly a silent link failure is detected.
  • Carry one subnet across racks with EVPN-VXLAN, explain type-2 and type-3 routes and route targets, and trace a frame through its encapsulation.
  • Enforce segmentation with a stateful default-deny firewall and prove a required flow and a denied flow with counters, not just a failed ping.
  • Change the network only through plan, apply and verify, with drift detection, automatic rollback and CI, and remove every lab resource afterwards.

Before you begin

  • Terminal use, Git basics, IPv4 subnetting, Ethernet, VLANs and ARP, routing tables and default gateways
  • Reading YAML and short Python functions (no module is written from scratch), and running containers with Docker
  • A Linux, macOS or Windows (WSL 2) computer with Docker, Python 3.11 to 3.13, Git and Make, about 8 GB of memory and 5 GB of free disk

Who this is for

For network engineers who configure routers and switches by hand and want to build a BGP EVPN-VXLAN fabric and change it through validated, tested automation.

Curriculum

Learning topics (18)
  1. Check your starting skills and prepare your computer

    This project teaches data-centre routing, overlays, firewall policy and network automation. It does not teach the fundamentals underneath them. This page lists what you should already know, how to check yourself quickly, and how to set up your computer so that the first practical step works.

  2. Follow the fabric, the edge and a change through the lab

    Larkspur Logistics needs three things from its network at once. The order service must keep one subnet on two racks, because its two application hosts fail over between each other by address. The security team wants every packet between the application tier and the database tier to pass through a firewall that only permits the database port. And the business wants internet access that survives the loss of either provider, without anyone logging in to a router during an outage

  3. Routers as containers, cables as veth pairs

    Before routing protocols, you need routers. This lab runs thirteen of them, plus hosts, on your computer, cabled exactly as the intent describes. This lesson explains what a "router in a container" is, how Containerlab wires them together, and why the lab keeps its management network away from its traffic.

  4. A network description tools can check

    Larkspur's outages started with someone typing a change into a router. The fix is not "type more carefully" but "stop typing into routers". In this lab one file, intent/fabric.yml, says what the network should be, and every router's configuration is generated from it. This lesson explains what goes in that file, what stays out, and how mistakes are caught before anything is generated.

  5. eBGP unnumbered with equal-cost paths

    Everything else in this lab rides on one promise: any leaf can reach any other leaf's loopback address, over every working path, and loses only one path when a link or a spine fails. The VXLAN tunnels in the overlay lesson are sent between those loopbacks. If the underlay is wrong, nothing above it can be right, which is why verify checks it first.

  6. How quickly the network notices a failure

    Equal-cost paths only help if a broken path is removed quickly. Until a router decides its neighbour is gone, it keeps hashing some flows onto the dead path, and those flows lose every packet. This lesson is about that decision: what detects a failure, how long it takes, and how to measure it rather than assume it.

  7. Ethernet frames inside UDP

    app1 on rack A and app2 on rack B must be in the same subnet, 10.10.10.0/24, because the order service fails over between them by IP address. The fabric between them is routed: every leaf-spine link is a separate Layer 3 hop. This lesson explains how an Ethernet frame crosses a routed network unchanged, what the Linux devices on each leaf do, and why the packet size matters.

  8. How each leaf learns where every host is

    VXLAN moves frames between VTEPs, but a VTEP still has to decide where to send each one. Which leaf is app2 behind? Which leaves need a copy of an ARP broadcast in VNI 10010? A classic switch answers by flooding and learning from replies. BGP EVPN answers by advertising the answers ahead of time, over the BGP sessions the underlay already runs.

  9. The firewall is the only path between tiers

    Larkspur's security team has one rule for the data centre: the application tier may reach the database on its database port, and nothing else crosses between the tiers. This lesson shows where that rule is enforced, how a stateful firewall decides, and how to prove a denial is a policy decision rather than a broken service.

  10. Two providers, one preferred

    Larkspur buys internet access from two providers. isp-a is faster and cheaper for its traffic, so it should carry everything; isp-b is there for when isp-a fails. "Prefer isp-a" sounds like one setting, but traffic has two directions, and Larkspur controls them very differently. This lesson builds edge1's policy one decision at a time.

  11. Configuration generated, reviewed and parsed before the lab

    The intent says what the network should be. Rendering turns it into the exact files each router loads; checking proves those files are valid before any router sees them. This lesson covers both, and the golden file that makes every generated change visible in review.

  12. Change running routers safely, and undo a bad change

    Rendered files are only candidates. This lesson is about getting them onto running routers safely: showing exactly what will change, refusing to act on an out-of-date view of the network, changing only what differs, and undoing the change when it turns out to be wrong.

  13. Evidence that the network does what the intent says

    "The change applied without errors" means FRR accepted some lines. It does not mean the database is reachable, the backup provider is configured correctly, or the denied flow is still denied. fabricctl verify turns the intent into checks and runs them against the live lab, and the same checks decide whether apply keeps a change or rolls it back.

  14. The same checks on every push

    Everything so far runs on your computer when you remember to run it. Continuous integration (CI) runs it every time anyone pushes a change, before a person reviews the pull request. This lesson walks through the workflow in .github/workflows/ci.yml, why it is split into three jobs, and how it is protected.

  15. Build, verify and change the lab

    This is the one ordered procedure for the project. The Step-by-Step Guide shows the relevant sections at each milestone; the lessons explain the concepts behind them. Every command runs in a terminal on your computer, in the source folder (the folder with Makefile and intent/), unless a step says otherwise.

  16. Troubleshoot by layer, with evidence

    Almost every problem in this lab belongs to one layer, and the fastest diagnosis starts by finding which. Is the platform up (containers, cables, management separation)? Is the underlay up (BGP sessions, BFD, two paths between leaves)? Is the overlay right (VNIs, remote VTEPs, route targets, MACs)? Is the policy doing what it says (fw1's counters, edge1's accepted routes)? Or is the problem in the change process itself (a plan that never empties, an apply that refuses)?

  17. Explain the design, including what it does not do

    Interviews for network engineering roles rarely ask you to recite a command. They ask you to walk through a design, defend a choice when a constraint changes, and diagnose something from incomplete evidence. This lab gives you a concrete system to talk about, with real trade-offs: a firewall that is the only route between tiers, single points of failure kept deliberately, prepending that only requests a path, and a change process that refuses to act on stale information.

  18. Remove the lab and check for leftovers

    Removing the lab is safe at any point, including after a failed or interrupted deployment. Nothing in this lab costs money, but 13 containers use memory and CPU until you remove them, and a leftover management network can clash with the next lab you start.

Practical build steps (9)
  1. Install the tools and run the local checks

    This milestone gets your computer ready and proves the tooling works before Docker is involved. You start with a source folder and finish with a Python environment, a passing test suite and a valid intent file. Nothing exists outside the source folder yet.

  2. Render the configuration and check it offline

    This milestone turns the intent into every router's files and checks them without starting a lab. You finish with build/nodes/<node>/ for eleven routers, two container images on your computer, and three kinds of evidence that the files are sound.

  3. Start the lab

    This milestone creates the lab: thirteen containers cabled as the intent describes, each router starting with its interfaces built and its policy loaded. You start with images and rendered files and finish with a running network and a recorded baseline of what was loaded on every managed router.

  4. Verify the fabric and read the evidence

    This milestone proves the running lab matches the intent, layer by layer. You finish with a report that shows every BGP session up, two paths between racks, the expected VNIs and route targets, the edge preferring isp-a and refusing bad routes, and six flows behaving as the intent says, including two that must be denied.

  5. Break a link, a provider and the edge's trust on purpose

    This milestone tests failure handling instead of assuming it. Each drill breaks one thing, measures the result and repairs it. You finish with three drill reports and measured numbers for detection and recovery on your own computer.

  6. Drain a spine through plan and apply

    This milestone makes the change Larkspur should have made before rebooting a spine: take it out of service first, confirm, and only then work on it. You finish having changed the network only through the intent, with a reviewed plan and a passing verification, and then reversed it the same way.

  7. Watch a bad change roll back, and a stale plan refused

    This milestone tests the two safety nets of the change process. A firewall change that passes every offline check but breaks a required flow is undone automatically. A plan made before someone edited a router by hand is refused. You finish with the lab back in its intended state and the intent file matching it.

  8. Run the pipeline in GitHub Actions (optional)

    This milestone runs every check, and a complete lab, on each push to a GitHub repository. You finish with a workflow run whose three jobs passed and whose summary shows the verify report. It does not need your local lab.

  9. Remove everything and check for leftovers

    This milestone removes the lab from your computer. You finish with no lab containers, no larkspur-mgmt network and, if you choose, no generated files or lab images.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

No cloud account or spending is needed: the whole lab runs as containers on your own computer, using well under 2 GB of memory while it runs (about 250 MB across its 13 containers when measured) and roughly 700 MB of downloaded images. GitHub Actions is optional; it is free on public repositories and uses your account's included minutes on private ones. This is a learning lab, not a hosted environment or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as FRRouting, Containerlab, Alpine packages, PyYAML, Jinja2, pytest and ruff, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy