Lines Matching refs:netns
28 ip netns add "${ns1}"
29 ip netns add "${ns2}"
31 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \
32 peer name veth2 mtu 1500 netns "${ns2}"
34 ip netns exec "${ns1}" ethtool -K veth1 tso off
36 ip -netns "${ns1}" link set veth1 up
37 ip -netns "${ns2}" link set veth2 up
39 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1
40 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
41 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad
42 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
45 ip -netns "${ns1}" -4 route flush table main
46 ip -netns "${ns1}" -6 route flush table main
47 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1
48 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1
56 ip netns del "${ns2}"
57 ip netns del "${ns1}"
72 ip netns exec "${ns2}" nc "${netcat_opt}" -l "${port}" > "${outfile}" &
78 ip netns exec "${ns1}" timeout 2 nc "${netcat_opt}" -w 1 "${addr2}" "${port}" < "${infile}"
197 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact
198 ip netns exec "${ns1}" tc filter add dev veth1 egress \
219 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
243 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
256 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \
258 ip netns exec "${ns2}" ip link set testtun0 address $ethaddr
262 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536
263 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo
264 ip netns exec "${ns2}" ip link set lo up
265 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
266 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.lo.rp_filter=0
273 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
276 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.testtun0.rp_filter=0
277 ip netns exec "${ns2}" ip link set dev testtun0 up
296 ip netns exec "${ns2}" ip link del dev testtun0
297 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact
298 ip netns exec "${ns2}" tc filter add dev veth2 ingress \