3 # This contains the basic network configuration for all vpn-tests
4 include: alice-port-vars
7 # Create an uplink zone
8 all: network zone new upl0 bridge
10 # Add IP addresses for Alice
11 alice: network zone upl0 config new static 192.168.100.101/24
13 # Add IP addresses for Bob
14 bob: network zone upl0 config new static 192.168.100.102/24
16 # Print what has been brought up
19 all: network port new bonding +${p_net1} +${p_net2}
21 # Check that editing works
22 all: network port b0 edit +${p_net3}
23 all: network port b0 edit -${p_net2}
25 # Attach the bonding to the zone
26 all: network zone upl0 port attach b0
28 # Print what we have configured
31 # Test if the bonding works by pinging bob
32 alice: ping -c 5 192.168.100.102
34 # Check if we can detach the port
35 all: network zone upl0 port detach b0