Lines Matching refs:ns2
12 readonly ns2="${ns_prefix}2"
30 ip netns add "${ns2}"
33 peer name veth2 mtu 1500 netns "${ns2}"
38 ip -netns "${ns2}" link set veth2 up
41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
57 ip netns del "${ns2}"
73 ip netns exec "${ns2}" nc "${netcat_opt}" -l "${port}" > "${outfile}" &
97 if ip netns exec "${ns2}" ss ${2:--4}OHntl | grep -q "$1"; then
234 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
264 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
277 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \
279 ip netns exec "${ns2}" ip link set testtun0 address $ethaddr
283 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536
284 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo
285 ip netns exec "${ns2}" ip link set lo up
286 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
287 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.lo.rp_filter=0
294 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
297 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.testtun0.rp_filter=0
298 ip netns exec "${ns2}" ip link set dev testtun0 up
311 ip netns exec "${ns2}" ip link del dev testtun0
312 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact
313 ip netns exec "${ns2}" tc filter add dev veth2 ingress \