Searched refs:ROUTER_NS (Results 1 – 4 of 4) sorted by relevance
15 ROUTER_NS=$(mktemp -u router-XXXXXXXX)30 ip netns add $ROUTER_NS31 ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS46 ip -net $ROUTER_NS link set link1 up47 ip -net $ROUTER_NS link set link2 up48 ip -net $ROUTER_NS addr add $CLIENT_GW4/24 dev link149 ip -net $ROUTER_NS addr add $CLIENT_GW6/64 dev link1 nodad50 ip -net $ROUTER_NS addr add $SERVER_GW4/24 dev link251 ip -net $ROUTER_NS addr add $SERVER_GW6/64 dev link2 nodad[all …]
24 cleanup_ns ${HOST_NS} ${ROUTER_NS}36 setup_ns HOST_NS ROUTER_NS42 ip netns exec ${ROUTER_NS} ip link add name ${ROUTER_INTF} \45 ip netns exec ${ROUTER_NS} ip link set dev ${ROUTER_INTF} up46 ip netns exec ${ROUTER_NS} ip link set dev ${HOST_INTF} netns ${HOST_NS}49 ip netns exec ${ROUTER_NS} ip addr add ${ROUTER_ADDR}/${SUBNET_WIDTH} \56 ip netns exec ${ROUTER_NS} ip route add default via ${ROUTER_ADDR} \60 ip netns exec ${ROUTER_NS} sysctl -w \110 neigh_show_output=$(ip netns exec ${ROUTER_NS} ip neigh get \
70 setup_ns HOST_NS ROUTER_NS73 IP_ROUTER="ip -6 -netns ${ROUTER_NS}"74 IP_ROUTER_EXEC="ip netns exec ${ROUTER_NS}"129 ip netns del ${ROUTER_NS}
28 setup_ns CLIENT_NS SERVER_NS ROUTER_NS29 ip -n "$SERVER_NS" link add link0 type veth peer name link1 netns "$ROUTER_NS"30 ip -n "$CLIENT_NS" link add link3 type veth peer name link2 netns "$ROUTER_NS"36 ip -n "$ROUTER_NS" link set link1 up37 ip -n "$ROUTER_NS" link set link2 up38 ip -n "$ROUTER_NS" addr add $SERVER_GW/24 dev link139 ip -n "$ROUTER_NS" addr add $CLIENT_GW/24 dev link240 ip net exec "$ROUTER_NS" sysctl -wq net.ipv4.ip_forward=158 ip net exec "$ROUTER_NS" iptables -A FORWARD -m state --state INVALID,UNTRACKED -j DROP59 ip net exec "$ROUTER_NS" iptables -A INPUT -p sctp -j DROP