Skip to content

Commit

Permalink
New example: EVPN/VXLAN bridging
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Sep 30, 2022
1 parent 9ae1f70 commit d46cc2e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
16 changes: 16 additions & 0 deletions EVPN/vxlan-bridging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EVPN/VXLAN bridging

This directory contains *netlab* topology file for a simple VXLAN bridging scenario with EVPN control plane -- two VLANs bridged across an IP underlay network.

![EVPN/VXLAN bridging topology](topology.png)

After starting the lab, h1 should be able to ping h2, and h3 should be able to ping h4, but there should be no traffic routed between the VLANs. Also, the VLAN hosts should not be able to access the switches.

## Changing Device Types

This topology can be used with all network devices supporting VLAN, VXLAN, EVPN, BGP, and OSPF configuration modules, and all virtualization providers supported by *netlab*.

The easiest way to change the device types is to edit the topology file. You could also use the **netlab up** [CLI arguments](https://netsim-tools.readthedocs.io/en/latest/netlab/up.html#usage):

* To change the node device type, use `-s nodes._name_..device=xxx` CLI argument
* To change the virtualization provider, use `-p` CLI argument.
Binary file added EVPN/vxlan-bridging/topology.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions EVPN/vxlan-bridging/topology.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
message: |
The devices under test are VLAN-to-VXLAN bridges
* h1 and h2 should be able to ping each other
* h3 and h4 should be able to ping each other
* h1 should not be able to reach h3
provider: clab

groups:
hosts:
members: [ h1, h2, h3, h4 ]
device: linux
switches:
members: [ s1,s2 ]
module: [ vlan,vxlan,ospf,bgp,evpn ]

bgp.as: 65000

vlans:
red:
mode: bridge
blue:
mode: bridge

nodes:
h1:
h2:
h3:
h4:
s1:
device: eos
s2:
device: cumulus

links:
- h1:
s1:
vlan.access: red
- h2:
s2:
vlan.access: red
- h3:
s1:
vlan.access: blue
- h4:
s2:
vlan.access: blue
- s1:
s2:

0 comments on commit d46cc2e

Please sign in to comment.