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