diff --git a/VLAN/vlan-router-on-a-stick/README.md b/VLAN/vlan-router-on-a-stick/README.md new file mode 100644 index 0000000..3d35b53 --- /dev/null +++ b/VLAN/vlan-router-on-a-stick/README.md @@ -0,0 +1,22 @@ +# Router-on-a-Stick Connected to a VLAN Trunk + +This directory contains *netlab* topology file for a router-on-a-stick scenario with a two VLANs stretched across two switches and terminated on a router. + +![VLAN trunk topology](netlab-router-stick.png) + +After starting the lab, *h1* should be able to ping *h3*. + +## 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 Cisco IOSv devices, use: + +``` +netlab up -p libvirt -d iosv +``` diff --git a/VLAN/vlan-router-on-a-stick/netlab-router-stick.png b/VLAN/vlan-router-on-a-stick/netlab-router-stick.png new file mode 100644 index 0000000..2fd401f Binary files /dev/null and b/VLAN/vlan-router-on-a-stick/netlab-router-stick.png differ diff --git a/VLAN/vlan-router-on-a-stick/topology.yml b/VLAN/vlan-router-on-a-stick/topology.yml new file mode 100644 index 0000000..f56fced --- /dev/null +++ b/VLAN/vlan-router-on-a-stick/topology.yml @@ -0,0 +1,42 @@ +provider: clab + +groups: + hosts: + members: [ h1, h3 ] + device: linux + switches: + members: [ s1, s2 ] + module: [ vlan ] + device: eos + routers: + members: [ ros ] + module: [ vlan ] + device: eos + +vlans: + red: + mode: bridge + blue: + mode: bridge + +nodes: + h1: + h3: + s1: + s2: + ros: + vlan.mode: route + +links: +- h1: + s1: + vlan.access: red +- h3: + s1: + vlan.access: blue +- s1: + s2: + vlan.trunk: [ red, blue ] +- s2: + ros: + vlan.trunk: [ red, blue ] diff --git a/VLAN/vlan-router-on-a-stick/vlan-trunk.png b/VLAN/vlan-router-on-a-stick/vlan-trunk.png new file mode 100644 index 0000000..cf56cb0 Binary files /dev/null and b/VLAN/vlan-router-on-a-stick/vlan-trunk.png differ diff --git a/tools b/tools index dddd3d5..9318507 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit dddd3d54a1657034504cf7b1fc3640846a3964c7 +Subproject commit 93185077f89a21c33a14f97b37a616833a6ff2ae