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 …]
10 ROUTER_NS="ns-router"27 ip netns del ${ROUTER_NS}40 ip netns add ${ROUTER_NS}47 ip netns exec ${ROUTER_NS} ip link add name ${ROUTER_INTF} \50 ip netns exec ${ROUTER_NS} ip link set dev ${ROUTER_INTF} up51 ip netns exec ${ROUTER_NS} ip link set dev ${HOST_INTF} netns ${HOST_NS}54 ip netns exec ${ROUTER_NS} ip addr add ${ROUTER_ADDR}/${SUBNET_WIDTH} \61 ip netns exec ${ROUTER_NS} ip route add default via ${ROUTER_ADDR} \65 ip netns exec ${ROUTER_NS} sysctl -w \115 neigh_show_output=$(ip netns exec ${ROUTER_NS} ip neigh get \
21 ROUTER_NS="ns-router"34 IP_ROUTER="ip -6 -netns ${ROUTER_NS}"35 IP_ROUTER_EXEC="ip netns exec ${ROUTER_NS}"80 ip netns add ${ROUTER_NS}134 ip netns del ${ROUTER_NS}
23 ROUTER_NS=$(mktemp -u router-XXXXXXXX)31 ip net add $ROUTER_NS32 ip -n $SERVER_NS link add link0 type veth peer name link1 netns $ROUTER_NS33 ip -n $CLIENT_NS link add link3 type veth peer name link2 netns $ROUTER_NS39 ip -n $ROUTER_NS link set link1 up40 ip -n $ROUTER_NS link set link2 up41 ip -n $ROUTER_NS addr add $SERVER_GW/24 dev link142 ip -n $ROUTER_NS addr add $CLIENT_GW/24 dev link243 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 DROP[all …]