Skip to content

Commit

Permalink
VXLAN router-on-a-stick example
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Nov 10, 2022
1 parent c89ac3a commit 71482dd
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
22 changes: 22 additions & 0 deletions VXLAN/vxlan-router-stick/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# VXLAN Router-on-a-Stick

This directory contains *netlab* topology file for a VXLAN router-on-a-stick scenario doing VXLAN-to-VXLAN routing between a set of VXLAN-enabled VLAN interfaces.

![VXLAN router-on-a-stick topology](netlab-vxlan-router-stick.png)

After starting the lab, *h1* should be able to ping *h2*.

## Changing Device Types

This topology can be used with all network devices supporting VLAN configuration module and all virtualization providers supported by *netlab*:

* To change all devices in the topology (apart from Linux hosts), use the `-d xxx` CLI argument
* To change the switch device type, use `-s groups.switches.device=xxx` CLI argument
* To change the router device type, use `-s groups.routers.device=xxx` CLI argument
* To change the virtualization provider, use `-p` CLI argument.

For example, to start the lab with Cumulus VX devices, use:

```
netlab up -d cumulus
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions VXLAN/vxlan-router-stick/topology.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
message: |
The topology implements VXLAN-to-VXLAN routing using router-on-a-stick.
All hosts should be able to ping each other.
provider: clab
defaults.device: eos

vrfs:
tenant:

vlans:
red:
vrf: tenant
blue:
vrf: tenant

groups:
hosts:
members: [ h1, h2 ]
device: linux
switches:
members: [ s1, s2 ]
module: [ vlan,vxlan,ospf ]
vlan.mode: bridge
routers:
members: [ ros ]
module: [ vlan,vxlan,ospf,vrf ]
vlans:
red:
blue:

nodes: [ h1, h2, s1, s2, ros ]


links:
- h1:
s1:
vlan.access: red
- h2:
s1:
vlan.access: blue
- s1-s2
- s2-ros
2 changes: 1 addition & 1 deletion tools
Submodule tools updated from 931850 to 22e05b

0 comments on commit 71482dd

Please sign in to comment.