Commit b5b52dc8 authored by Killian Lufau's avatar Killian Lufau Committed by Julien Muchembled

demo: add testing of UDP

/reviewed-on !11
parent 120fff13
......@@ -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 to test UDP6 between m8 and m6/m7
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']
......
......@@ -2,10 +2,12 @@ log m6/
run m6/run
state m6/
pp 1194 tcp
pp 1194 udp
pp 1195 udp6
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"
......@@ -2,7 +2,9 @@ log m7/
run m7/run
state m7/
pp 1194 tcp
pp 1194 udp
pp 1195 udp6
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,1195,udp6;fc42:7::1,1195,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