Commit 0c4df9ee authored by Killian Lufau's avatar Killian Lufau

demo: add testing of UDP

Verification of UDP is added to the demo by forcing machine 2 to
connect to the registry via UDP, we also enable UDP on registry.
parent 24fea8cd
......@@ -146,6 +146,11 @@ m7_if_0.add_v4_address(address='10.0.1.3', prefix_len=24)
m8_if_0.add_v4_address(address='10.0.1.4', prefix_len=24)
m6_if_1.add_v4_address(address='192.168.241.1', prefix_len=24)
#Add IPv6 addresses
m6_if_0.add_v6_address(address='fc42:6::1', prefix_len=16)
m7_if_0.add_v6_address(address='fc42:7::1', prefix_len=16)
m8_if_0.add_v6_address(address='fc42:8::1', prefix_len=16)
def add_llrtr(iface, peer, dst='default'):
for a in peer.get_addresses():
a = a['address']
......
log m6/
run m6/run
state m6/
pp 1194 tcp
ca ca.crt
cert m6/cert.crt
key m6/cert.key
default
disable-proto none
# TODO: Run a DHCPv4 client on machine9. Unfortunately, isc-dhcp-client 4.2.4
# fails with "Bind socket to interface: No such device"
daemon "exec dnsmasq -d8 - -i $re6stnet_iface -F 192.168.42.2,192.168.42.254,255.255.255.0,infinite -F ${re6stnet_subnet%/*},ra-only,${re6stnet_subnet#*/},1d -O option:router,192.168.42.1 -l m6/dnsmasq.leases"
log m7/
run m7/run
state m7/
pp 1194 tcp
ca ca.crt
cert m7/cert.crt
key m7/cert.key
default
disable-proto none
......@@ -4,5 +4,5 @@ state m8/
ca ca.crt
cert m8/cert.crt
key m8/cert.key
default
client 10.0.1.2,1194,tcp;10.0.1.3,1194,tcp
disable-proto none
client fc42:6::1,1194,udp6;fc42:7::1,1194,udp6
......@@ -6,3 +6,4 @@ ca ca.crt
cert registry/cert.crt
key registry/cert.key
gateway
disable-proto none
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment