Home
last modified time | relevance | path

Searched refs:ns1 (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/net/mptcp/
A Dpm_netlink.sh27 ns1="ns1-$rndh"
34 ip netns del $ns1
45 ip netns add $ns1 || exit $ksft_skip
46 ip -net $ns1 link set lo up
75 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
85 ip netns exec $ns1 ./pm_nl_ctl del 2
103 ip netns exec $ns1 ./pm_nl_ctl del 9
106 ip netns exec $ns1 ./pm_nl_ctl del $i
116 ip netns exec $ns1 ./pm_nl_ctl flush
131 ip netns exec $ns1 ./pm_nl_ctl flush
[all …]
A Dmptcp_join.sh46 ns1="ns1-$rndh"
49 for netns in "$ns1" "$ns2";do
93 for netns in "$ns1" "$ns2"; do
116 for netns in "$ns1" "$ns2";do
845 addr_ns=$ns1
849 subflow_ns=$ns1
943 run_tests $ns1 $ns2 10.0.1.1
951 run_tests $ns1 $ns2 10.0.1.1
959 run_tests $ns1 $ns2 10.0.1.1
967 run_tests $ns1 $ns2 10.0.1.1
[all …]
A Dsimult_flows.sh5 ns1="ns1-$rndh"
30 for netns in "$ns1" "$ns2" "$ns3";do
60 for i in "$ns1" "$ns2" "$ns3";do
71 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
73 ip -net "$ns1" link set ns1eth1 up mtu 1500
74 ip -net "$ns1" route add default via 10.0.1.2
75 ip -net "$ns1" route add default via dead:beef:1::2
77 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
79 ip -net "$ns1" link set ns1eth2 up mtu 1500
83 ip netns exec "$ns1" ./pm_nl_ctl limits 1 1
[all …]
A Dmptcp_sockopt.sh36 ns1="ns1-$rndh"
39 for netns in "$ns1" "$ns2";do
49 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
50 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
51 ip -net "$ns1" link set ns1eth$i up
60 ip netns exec $ns1 ./pm_nl_ctl add 10.0.$i.1 flags signal
67 ip netns exec $ns1 ./pm_nl_ctl limits 8 8
70 add_mark_rules $ns1 1
76 for netns in "$ns1" "$ns2"; do
291 run_tests $ns1 $ns2 10.0.1.1
[all …]
A Dmptcp_connect.sh121 ns1="ns1-$rndh"
154 for i in "$ns1" "$ns2" "$ns3" "$ns4";do
171 ip -net "$ns1" link set ns1eth2 up
679 run_tests_lo "$ns1" "$ns1" 10.0.1.1 1 "-P ${peekmode}"
680 run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1 "-P ${peekmode}"
713 do_ping "$ns1" $sender 10.0.1.1
759 run_tests_lo "$ns1" "$ns1" 10.0.1.1 1
762 run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1
765 for sender in $ns1 $ns2 $ns3 $ns4;do
768 if [ $sender = $ns1 ]; then
[all …]
/linux/tools/testing/selftests/netfilter/
A Dnft_conntrack_helper.sh12 ns1="ns1-$sfx"
18 ip netns del ${ns1}
48 ip netns add ${ns1}
57 ip -net ${ns1} link set lo up
58 ip -net ${ns1} link set veth0 up
63 ip -net ${ns1} addr add 10.0.1.1/24 dev veth0
64 ip -net ${ns1} addr add dead:1::1/64 dev veth0
123 check_for_helper "$ns1" "ip $msg" $port
140 check_for_helper "$ns1" "ipv6 $msg" $port
146 load_ruleset_family ip ${ns1}
[all …]
A Dnft_fib.sh10 ns1="ns1-$sfx"
19 ip netns del ${ns1}
53 ip netns add ${ns1}
116 load_ruleset ${ns1}
135 ip -net ${ns1} link set lo up
136 ip -net ${ns1} link set eth0 up
141 ip -net ${ns1} addr add 10.0.1.99/24 dev eth0
143 ip -net ${ns1} route add default via 10.0.1.1
190 ip -net ${ns1} route del default
191 ip -net ${ns1} -6 route del default
[all …]
A Dnft_nat.sh13 ns1="ns1-$sfx"
41 ip netns add "$ns1"
43 echo "SKIP: Could not create net namespace $ns1"
289 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat 1"
339 bad_counter "$ns1" ns1$dir "$expect" "test_local_dnat 5"
388 echo "ERROR: cannot ping $ns1 from $ns2 via ipv6"
490 echo "ERROR: cannot ping $ns1 from "$ns2" $natflags"
589 echo "ERROR: cannnot ping $ns1 from $ns2 via ipv6"
671 echo "ERROR: cannot ping $ns1 from $ns2"
685 bad_counter "$ns2" ns1$dir "$expect" "test_redirect 2"
[all …]
A Dipvs.sh70 ip netns add ns1
85 ip netns exec ns1 ip link set lo up
86 ip netns exec ns1 ip link set veth10 up
88 ip netns exec ns1 ip link set veth12 up
141 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1
144 ip netns exec ns1 ip addr add ${vip_v4}/32 dev lo:1
160 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1
163 ip netns exec ns1 ip addr add ${vip_v4}/32 dev lo:1
174 ip netns exec ns1 modprobe ipip
175 ip netns exec ns1 ip link set tunl0 up
[all …]
A Dnft_queue.sh12 ns1="ns1-$sfx"
19 ip netns pids ${ns1} | xargs kill 2>/dev/null
23 ip netns del ${ns1}
55 ip netns add ${ns1}
74 ip -net ${ns1} link set lo up
75 ip -net ${ns1} link set eth0 up
80 ip -net ${ns1} addr add 10.0.1.99/24 dev eth0
346 ip -net $ns1 li set eth0 master tvrf
347 ip -net $ns1 li set tvrf up
376 ip netns exec ${ns1} nft list ruleset
[all …]
A Dconntrack_tcp_unreplied.sh13 ns1="ns1-$sfx"
29 ip netns pids $ns1 | xargs kill 2>/dev/null
32 ip netns del $ns1
58 ip netns add $ns1 || exit 1
66 ip -net $ns1 link set netns $ns2 dev veth2
68 ip -net $ns1 link set up dev lo
70 ip -net $ns1 link set up dev veth1
81 ip -net $ns1 addr add 10.11.11.1/24 dev veth1
82 ip -net $ns1 route add 10.99.99.99 via 10.11.11.2
109 echo "INFO: connect $ns1 -> $ns2 to the virtual ip"
[all …]
A Dnf_nat_edemux.sh12 ns1="ns1-$sfx"
17 ip netns del $ns1
39 ip netns add "$ns1"
41 echo "SKIP: Could not create net namespace $ns1"
51 ip link set netns $ns1 dev veth1
54 ip netns exec $ns1 ip link set up dev lo
55 ip netns exec $ns1 ip link set up dev veth1
56 ip netns exec $ns1 ip addr add 192.168.1.1/24 dev veth1
63 ip netns exec $ns1 iperf3 -s > /dev/null 2>&1 &
A Dnft_flowtable.sh41 ip netns add ns1
113 ip -net ns1 link set eth0 mtu $omtu
315 if test_tcp_forwarding ns1 ns2; then
418 ip -net ns1 addr flush dev eth0
420 ip -net ns1 link set eth0 up
421 ip -net ns1 link set eth0.10 up
440 ip -net ns1 addr flush dev eth0.10
441 ip -net ns1 link set eth0.10 down
442 ip -net ns1 link set eth0 down
446 ip -net ns1 link set eth0 up
[all …]
A Dbridge_brouter.sh27 ip netns add ns1
30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1
72 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&1
87 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null
97 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null
106 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&1
126 ip netns exec ns1 ping -c 1 -q 10.0.0.12 > /dev/null
A Dconntrack_vrf.sh40 ns1="ns1-$sfx"
45 ip netns pids $ns1 | xargs kill 2>/dev/null
47 ip netns del $ns0 $ns1
67 ip netns add "$ns1"
75 ip link add veth0 netns "$ns0" type veth peer name veth0 netns "$ns1" > /dev/null 2>&1
92 ip -net $ns1 li set veth0 up
95 ip -net $ns1 addr add $IP1/$PFXL dev veth0
97 ip netns exec $ns1 iperf3 -s > /dev/null 2>&1&
129 ip netns exec $ns1 ping -W 1 -c 1 -I veth0 $IP0 > /dev/null
/linux/tools/testing/selftests/bpf/
A Dtest_xdp_vlan.sh59 ip netns del ns1 2> /dev/null
129 ip netns del ns1 2> /dev/null
147 ip netns add ns1
157 ip link set veth1 netns ns1
165 ip netns exec ns1 ethtool -K veth1 rxvlan off
170 ip netns exec ns1 ethtool -K veth1 txvlan off
177 ip netns exec ns1 ip link set veth1 up
188 ip netns exec ns1 ip link set lo up
211 ip netns exec ns1 tc qdisc add dev $DEVNS1 clsact
217 ip netns exec ns1 ping -i 0.2 -W 2 -c 2 $IPADDR2
[all …]
A Dtest_xdp_redirect_multi.sh110 ip netns exec ns1 ping 192.0.2.254 -i 0.1 -c 4 &> /dev/null
126 ip netns exec ns1 ip neigh add 2001:db8::2 dev veth0 lladdr 00:00:00:00:00:02
128 ip netns exec ns1 tcpdump -i veth0 -nn -l -e &> ${LOG_DIR}/ns1-1_${mode}.log &
133 ip netns exec ns1 arping -q -c 2 -I veth0 192.0.2.254
135 ip netns exec ns1 ping 192.0.2.253 -i 0.1 -c 4 &> /dev/null
137 ip netns exec ns1 ping6 2001:db8::2 -i 0.1 -c 2 &> /dev/null
153 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-1_${mode}.log) -eq 4 ] && \
156 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-2_${mode}.log) -eq 4 ] && \
159 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-3_${mode}.log) -eq 4 ] && \
164 [ $(grep -c "ICMP6, echo request" ${LOG_DIR}/ns1-1_${mode}.log) -eq 4 ] && \
[all …]
A Dtest_xdp_meta.sh16 ip netns del ns1 2> /dev/null
27 ip netns add ns1
34 ip link set veth1 netns ns1
37 ip netns exec ns1 ip addr add 10.1.1.11/24 dev veth1
40 ip netns exec ns1 tc qdisc add dev veth1 clsact
43 ip netns exec ns1 tc filter add dev veth1 ingress bpf da obj test_xdp_meta.o sec t
46 ip netns exec ns1 ip link set dev veth1 xdp obj test_xdp_meta.o sec x
49 ip netns exec ns1 ip link set dev veth1 up
52 ip netns exec ns1 ping -c 1 10.1.1.22
A Dtest_tc_tunnel.sh10 readonly ns1="${ns_prefix}1"
28 ip netns add "${ns1}"
31 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \
34 ip netns exec "${ns1}" ethtool -K veth1 tso off
36 ip -netns "${ns1}" link set veth1 up
39 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1
45 ip -netns "${ns1}" -4 route flush table main
46 ip -netns "${ns1}" -6 route flush table main
57 ip netns del "${ns1}"
197 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact
[all …]
A Dtest_xdp_redirect.sh20 ip netns add ns1
23 ip link add veth1 index 111 type veth peer name veth11 netns ns1
28 ip -n ns1 link set dev veth11 up
31 ip -n ns1 addr add 10.1.1.11/24 dev veth11
39 ip netns del ns1 2> /dev/null
55 ip -n ns1 link set veth11 $xdpmode obj xdp_dummy.o sec xdp &> /dev/null
60 if ip netns exec ns1 ping -c 1 10.1.1.22 &> /dev/null &&
A Dtest_xdp_veth.sh32 ip netns del ns1 2> /dev/null
80 ip netns add ns1
84 ip link add veth1 index 111 type veth peer name veth11 netns ns1
92 ip -n ns1 addr add 10.1.1.11/24 dev veth11
95 ip -n ns1 link set dev veth11 up
110 ip -n ns1 link set dev veth11 xdp obj xdp_dummy.o sec xdp
116 ip netns exec ns1 ping -c 1 -W 1 10.1.1.33
A Dtest_lwt_seg6local.sh44 ip netns del ns1 2> /dev/null
55 ip netns add ns1
70 ip link set veth1 netns ns1
81 ip netns exec ns1 ip link set dev veth1 up
94 ip netns exec ns1 ip -6 addr add fb00::12/16 dev veth1 scope link
95 ip netns exec ns1 ip -6 route add fb00::21 dev veth1 scope link
111 ip netns exec ns1 ip -6 addr add fb00::1/16 dev lo
112 ip netns exec ns1 ip -6 route add fb00::6 dev veth1 via fb00::21
130 ip netns exec ns1 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
141 ip netns exec ns1 bash -c "echo 'foobar' | nc -w0 -6 -u -p 2121 -s fb00::1 fb00::6 7330"
/linux/samples/bpf/
A Dtc_l2_redirect.sh16 $IP netns add ns1
24 $IP link set dev vens1 netns ns1
27 $IP -n ns1 link set dev lo up
28 $IP -n ns1 link set dev vens1 up
29 $IP -n ns1 addr add 10.1.1.101/24 dev vens1
30 $IP -n ns1 addr add 2401:db01::65/64 dev vens1 nodad
31 $IP -n ns1 route add default via 10.1.1.1 dev vens1
32 $IP -n ns1 route add default via 2401:db01::1 dev vens1
72 $IP netns delete ns1 >& /dev/null
108 $IP netns exec ns1 ping -c1 10.10.1.102 >& /dev/null
[all …]
/linux/tools/testing/selftests/net/forwarding/
A Dvxlan_asymmetric.sh390 ip netns add ns1
391 ip link set dev v2 netns ns1
392 in_ns ns1 ns_init
397 ip netns exec ns1 ip link set dev v2 netns 1
398 ip netns del ns1
423 local h1_ns_mac=$(in_ns ns1 mac_get w2)
424 local h2_ns_mac=$(in_ns ns1 mac_get w4)
502 local actual=$(in_ns ns1 tc_rule_stats_get vx10 1 ingress)
512 in_ns ns1 tc qdisc add dev vx10 clsact
557 ip neigh add 10.1.1.102 lladdr $(in_ns ns1 mac_get w2) nud noarp \
[all …]
/linux/tools/testing/selftests/net/
A Dgre_gso.sh53 ip netns add ns1
54 ip netns set ns1 auto
59 ip link set veth1 netns ns1
73 ip netns del ns1
148 a2=$(get_linklocal veth0 ns1)

Completed in 70 milliseconds

12