Lines Matching refs:NS2
115 readonly NS2=$(mktemp -u ns2-XXXXXXXX)
145 ip netns add "${NS2}" || exit_cleanup "${NS0}" "${NS1}"
146 ip netns add "${NS3}" || exit_cleanup "${NS0}" "${NS1}" "${NS2}"
153 exit_cleanup "${NS0}" "${NS1}" "${NS2}" "${NS3}"
191 for ns in "${NS0}" "${NS1}" "${NS2}" "${NS3}"; do
196 ip link add name veth12 netns "${NS1}" type veth peer name veth21 netns "${NS2}"
197 ip link add name veth23 netns "${NS2}" type veth peer name veth32 netns "${NS3}"
201 iface_config "${NS2}" veth21 192.0.2.22 192.0.2.21/32 2001:db8::22 2001:db8::21/128
202 iface_config "${NS2}" veth23 192.0.2.32 192.0.2.33/32 2001:db8::32 2001:db8::33/128
206 tc -netns "${NS2}" qdisc add dev veth23 ingress
234 ip netns exec "${NS2}" sysctl -qw net.ipv4.ip_forward=1
236 ip -netns "${NS2}" route add 192.0.2.103/32 via 192.0.2.33
242 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
244 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.default.rp_filter=0
258 ip netns exec "${NS2}" sysctl -qw net.ipv6.conf.all.forwarding=1
260 ip -netns "${NS2}" route add 2001:db8::103/128 via 2001:db8::33
274 ip netns exec "${NS2}" sysctl -qw net.mpls.platform_labels=256
276 ip -netns "${NS2}" -family mpls route add 203 via inet6 2001:db8::33
396 …ip -netns "${NS2}" link add name bareudp_ns2 up type bareudp dstport 6635 ethertype "${ETHERTYPE}"…
405 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
418 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv6 \
427 ip netns exec "${NS2}" sysctl -qw net.mpls.conf.bareudp_ns2.input=1
434 tc -netns "${NS2}" filter add dev veth23 ingress protocol mpls_uc \
446 tc -netns "${NS2}" filter delete dev veth23 ingress
455 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
468 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv6 \
481 tc -netns "${NS2}" filter add dev veth23 ingress protocol mpls_uc \
491 tc -netns "${NS2}" filter delete dev veth23 ingress
493 ip -netns "${NS2}" link delete bareudp_ns2