]> git.ipfire.org Git - people/ms/network.git/blame_incremental - test/nitsi/test/port-vlan/recipe
vlan: Rename tag to id
[people/ms/network.git] / test / nitsi / test / port-vlan / recipe
... / ...
CommitLineData
1include: setup
2
3# This contains the basic network configuration for all vpn-tests
4include: alice-port-vars
5include: bob-port-vars
6
7# Create an uplink zone
8all: network zone new upl0 bridge --stp=off
9
10# Add IP addresses for Alice
11alice: network zone upl0 config new static 192.168.100.101/24
12
13# Add IP addresses for Bob
14bob: network zone upl0 config new static 192.168.100.102/24
15
16# Print what has been brought up
17all: network status
18
19# Create a vlan device with parent port attached to net1
20all: network port new vlan --port="${p_net1}" --id=42
21all: network zone upl0 port attach "${p_net1}v42"
22
23# Test if the vlan works by pinging bob
24alice: ping -c 5 192.168.100.102
25
26# Test that we can detach the vlan port
27all: network zone upl0 port detach "${p_net1}v42"