Skip to content

Commit 5b56c33

Browse files
committed
router-on-a-stick example
1 parent 7c9b068 commit 5b56c33

File tree

5 files changed

+65
-1
lines changed

5 files changed

+65
-1
lines changed

VLAN/vlan-router-on-a-stick/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Router-on-a-Stick Connected to a VLAN Trunk
2+
3+
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.
4+
5+
![VLAN trunk topology](netlab-router-stick.png)
6+
7+
After starting the lab, *h1* should be able to ping *h3*.
8+
9+
## Changing Device Types
10+
11+
This topology can be used with all network devices supporting VLAN configuration module and all virtualization providers supported by *netlab*:
12+
13+
* To change all devices in the topology (apart from Linux hosts), use the `-d xxx` CLI argument
14+
* To change the switch device type, use `-s groups.switches.device=xxx` CLI argument
15+
* To change the router device type, use `-s groups.routers.device=xxx` CLI argument
16+
* To change the virtualization provider, use `-p` CLI argument.
17+
18+
For example, to start the lab with Cisco IOSv devices, use:
19+
20+
```
21+
netlab up -p libvirt -d iosv
22+
```
Loading
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
provider: clab
2+
3+
groups:
4+
hosts:
5+
members: [ h1, h3 ]
6+
device: linux
7+
switches:
8+
members: [ s1, s2 ]
9+
module: [ vlan ]
10+
device: eos
11+
routers:
12+
members: [ ros ]
13+
module: [ vlan ]
14+
device: eos
15+
16+
vlans:
17+
red:
18+
mode: bridge
19+
blue:
20+
mode: bridge
21+
22+
nodes:
23+
h1:
24+
h3:
25+
s1:
26+
s2:
27+
ros:
28+
vlan.mode: route
29+
30+
links:
31+
- h1:
32+
s1:
33+
vlan.access: red
34+
- h3:
35+
s1:
36+
vlan.access: blue
37+
- s1:
38+
s2:
39+
vlan.trunk: [ red, blue ]
40+
- s2:
41+
ros:
42+
vlan.trunk: [ red, blue ]
76.2 KB
Loading

tools

Submodule tools updated from dddd3d5 to 9318507

0 commit comments

Comments
 (0)