Add tests for multicast connections
[platform/core/test/security-tests.git] / src / nether-tests / setup-nether-tests-nns.sh
index 6da2fb9..29c5274 100644 (file)
@@ -27,8 +27,10 @@ ip link add veth0 type veth peer name veth1
 ip link set veth1 netns $1
 ip netns exec $1 ifconfig lo 127.0.0.1
 ip netns exec $1 ifconfig veth1 10.1.0.2 netmask 255.255.255.252
+ip netns exec $1 route add -net 224.0.0.0 netmask 224.0.0.0 veth1
 
 ifconfig veth0 10.1.0.1 netmask 255.255.255.252
+route add -net 224.0.0.0 netmask 224.0.0.0 veth0
 
 # force ARP response
 ping -c 1 10.1.0.2 > /dev/null