Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dpm_netlink.sh29 ns1="ns1-$rndh"
36 ip netns del $ns1
49 ip netns add $ns1 || exit $ksft_skip
50 ip -net $ns1 link set lo up
96 ip netns exec $ns1 ./pm_nl_ctl del 2
114 ip netns exec $ns1 ./pm_nl_ctl del 9
117 ip netns exec $ns1 ./pm_nl_ctl del $i
127 ip netns exec $ns1 ./pm_nl_ctl flush
140 ip netns exec $ns1 ./pm_nl_ctl flush
158 ip netns exec $ns1 ./pm_nl_ctl flush
[all …]
H A Dmptcp_join.sh27 ns1=""
92 ns1="ns1-$rndh"
1312 local ns_tx=$ns1
1320 ns_rx=$ns1
1375 ns_tx=$ns1
1417 ns_rx=$ns1
1596 ns_rx=$ns1
1745 addr_ns=$ns1
1946 ss -N $ns1 -ti
3667 wait_mpj $ns1
[all …]
H A Dsimult_flows.sh8 ns1="ns1-$rndh"
34 for netns in "$ns1" "$ns2" "$ns3";do
67 for i in "$ns1" "$ns2" "$ns3";do
78 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
80 ip -net "$ns1" link set ns1eth1 up mtu 1500
81 ip -net "$ns1" route add default via 10.0.1.2
82 ip -net "$ns1" route add default via dead:beef:1::2
84 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
86 ip -net "$ns1" link set ns1eth2 up mtu 1500
90 ip netns exec "$ns1" ./pm_nl_ctl limits 1 1
[all …]
H A Duserspace_pm.sh59 ns1="ns1-$rndh"
126 for netns in "$ns1" "$ns2" ;do
138 for i in "$ns1" "$ns2" ;do
151 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth2
152 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
153 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth2 nodad
155 ip -net "$ns1" link set ns1eth2 up
212 ip netns exec "$ns1" \
715 ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
790 ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
[all …]
H A Dmptcp_connect.sh130 ns1="ns1-$rndh"
189 ip -net "$ns1" link set ns1eth2 up
714 local connector_ns="$ns1"
807 run_tests_lo "$ns1" "$ns1" 10.0.1.1 1 "-P ${peekmode}"
808 run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1 "-P ${peekmode}"
858 run_tests_lo "$ns1" "$ns1" 10.0.1.1 1 "-I 3 -i $old_cin"
859 run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1 "-I 3 -i $old_cin"
908 do_ping "$ns1" $sender 10.0.1.1
957 run_tests_lo "$ns1" "$ns1" 10.0.1.1 1
961 run_tests_lo "$ns1" "$ns1" dead:beef:1::1 1
[all …]
H A Dmptcp_sockopt.sh20 ns1="ns1-$rndh"
45 for netns in "$ns1" "$ns2" "$ns_sbox";do
56 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
57 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
58 ip -net "$ns1" link set ns1eth$i up
67 ip netns exec $ns1 ./pm_nl_ctl add 10.0.$i.1 flags signal
74 ip netns exec $ns1 ./pm_nl_ctl limits 8 8
77 add_mark_rules $ns1 1
84 for netns in "$ns1" "$ns2" "$ns_sbox"; do
365 run_tests $ns1 $ns2 10.0.1.1
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dtest_vxlan_mdb.sh263 ip netns add $ns1
436 local ns1=ns1_v4
449 local ns1=ns1_v4
462 local ns1=ns1_v6
475 local ns1=ns1_v6
488 local ns1=ns1_v4
501 local ns1=ns1_v4
514 local ns1=ns1_v6
527 local ns1=ns1_v6
697 local ns1=ns1_v4
[all …]
H A Dtest_vxlan_nolocalbypass.sh101 ip netns add ns1
103 ip -n ns1 link set dev lo up
104 ip -n ns1 address add 192.0.2.1/32 dev lo
105 ip -n ns1 address add 198.51.100.1/32 dev lo
107 ip -n ns1 link add name vx0 up type vxlan id 100 local 198.51.100.1 \
109 ip -n ns1 link add name vx1 up type vxlan id 100 dstport 4790
114 ip netns del ns1 &> /dev/null
/openbmc/linux/tools/testing/selftests/netfilter/
H 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
148 ip netns exec ${ns1} conntrack -F 2> /dev/null
156 check_for_helper "$ns1" "ipv6 $msg" $port
162 load_ruleset_family ip ${ns1}
[all …]
H A Dnft_fib.sh10 ns1="ns1-$sfx"
19 ip netns del ${ns1}
53 ip netns add ${ns1}
130 load_ruleset ${ns1}
149 ip -net ${ns1} link set lo up
150 ip -net ${ns1} link set eth0 up
155 ip -net ${ns1} addr add 10.0.1.99/24 dev eth0
157 ip -net ${ns1} route add default via 10.0.1.1
206 ip -net ${ns1} route del default
207 ip -net ${ns1} -6 route del default
[all …]
H A Dnft_nat.sh13 ns1="ns1-$sfx"
41 ip netns add "$ns1"
43 echo "SKIP: Could not create net namespace $ns1"
339 bad_counter "$ns1" ns1$dir "$expect" "test_local_dnat 5"
429 echo "ERROR: cannot ping $ns1 from $ns2 via ipv6"
531 echo "ERROR: cannot ping $ns1 from "$ns2" $natflags"
630 echo "ERROR: cannnot ping $ns1 from $ns2 via ipv6"
712 echo "ERROR: cannot ping $ns1 from $ns2"
726 bad_counter "$ns2" ns1$dir "$expect" "test_redirect 2"
759 bad_counter "$ns1" ns0$dir "$expect" "test_redirect 3"
[all …]
H 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 …]
H 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 …]
H A Dnft_synproxy.sh11 ns1="ns1-$rnd" # iperf client
28 ip netns add $ns1
32 ip netns pids $ns1 | xargs kill 2>/dev/null
34 ip netns del $ns1
42 ip link add veth0 netns $nsr type veth peer name eth0 netns $ns1
56 for n in $ns1 $ns2; do
60 ip -net $ns1 addr add 10.0.1.99/24 dev eth0
62 ip -net $ns1 route add default via 10.0.1.1
66 if ! ip netns exec $ns1 ping -c 1 -q 10.0.2.99 > /dev/null; then
67 echo "ERROR: $ns1 cannot reach $ns2" 1>&2
[all …]
H 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
364 ip -net $ns1 li set eth0 master tvrf
365 ip -net $ns1 li set tvrf up
394 ip netns exec ${ns1} nft list ruleset
[all …]
H 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 &
H A Dnft_flowtable.sh18 ns1="ns1-$sfx"
45 ip netns add $ns1
50 ip netns del $ns1
114 ip -net $ns1 link set eth0 mtu $omtu
135 for ns in $ns1 $ns2;do
590 ip -net $ns1 addr flush dev eth0
592 ip -net $ns1 link set eth0 up
593 ip -net $ns1 link set eth0.10 up
611 ip -net $ns1 link set eth0.10 down
612 ip -net $ns1 link set eth0 down
[all …]
H A Drpath.sh36 ns1="ns1-$sfx"
38 trap "ip netns del $ns1; ip netns del $ns2" EXIT
42 ip netns add "$ns1"
51 ip -net "$ns1" a a 192.168.23.2/24 dev v0
53 ip -net "$ns1" a a fec0:23::2/64 dev v0 nodad
59 ip -net "$ns1" a a 192.168.42.2/24 dev v0
61 ip -net "$ns1" a a fec0:42::2/64 dev v0 nodad
130 netns_ping "$ns1" -I v0 192.168.42.1 && \
132 netns_ping "$ns1" -I v0 fec0:42::1 && \
145 netns_ping "$ns1" 192.168.23.1 || \
[all …]
H 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
H 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
/openbmc/linux/tools/testing/selftests/net/hsr/
H A Dhsr_ping.sh32 ns1="ns1-$rndh"
116 do_ping "$ns1" 100.64.0.2
121 do_ping "$ns1" 100.64.0.3
125 do_ping "$ns1" dead:beef:1::2
126 do_ping "$ns1" dead:beef:1::3
153 do_ping_long "$ns1" 100.64.0.2
155 do_ping_long "$ns1" 100.64.0.3
173 do_ping_long "$ns1" 100.64.0.3 &
187 do_ping_long "$ns1" 100.64.0.2
188 do_ping_long "$ns1" 100.64.0.3
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh11 readonly ns1="${ns_prefix}1"
29 ip netns add "${ns1}"
32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \
35 ip netns exec "${ns1}" ethtool -K veth1 tso off
37 ip -netns "${ns1}" link set veth1 up
40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1
46 ip -netns "${ns1}" -4 route flush table main
47 ip -netns "${ns1}" -6 route flush table main
58 ip netns del "${ns1}"
211 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact
[all …]
H A Dtest_xdp_redirect_multi.sh130 ip netns exec ${NS[1]} tcpdump -i veth0 -nn -l -e &> ${LOG_DIR}/ns1-1_${mode}.log &
131 ip netns exec ${NS[2]} tcpdump -i veth0 -nn -l -e &> ${LOG_DIR}/ns1-2_${mode}.log &
132 ip netns exec ${NS[3]} tcpdump -i veth0 -nn -l -e &> ${LOG_DIR}/ns1-3_${mode}.log &
144 [ $(grep -cF "who-has 192.0.2.254" ${LOG_DIR}/ns1-1_${mode}.log) -eq 4 ] && \
147 [ $(grep -cF "who-has 192.0.2.254" ${LOG_DIR}/ns1-2_${mode}.log) -eq 2 ] && \
150 [ $(grep -cF "who-has 192.0.2.254" ${LOG_DIR}/ns1-3_${mode}.log) -eq 2 ] && \
155 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-1_${mode}.log) -eq 4 ] && \
158 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-2_${mode}.log) -eq 4 ] && \
161 [ $(grep -c "ICMP echo request" ${LOG_DIR}/ns1-3_${mode}.log) -eq 4 ] && \
166 [ $(grep -c "ICMP6, echo request" ${LOG_DIR}/ns1-1_${mode}.log) -eq 4 ] && \
[all …]
/openbmc/linux/samples/bpf/
H A Dtc_l2_redirect.sh17 $IP netns add ns1
25 $IP link set dev vens1 netns ns1
28 $IP -n ns1 link set dev lo up
29 $IP -n ns1 link set dev vens1 up
30 $IP -n ns1 addr add 10.1.1.101/24 dev vens1
31 $IP -n ns1 addr add 2401:db01::65/64 dev vens1 nodad
32 $IP -n ns1 route add default via 10.1.1.1 dev vens1
33 $IP -n ns1 route add default via 2401:db01::1 dev vens1
74 $IP netns delete ns1 >& /dev/null
111 $IP netns exec ns1 ping -c1 10.10.1.102 >& /dev/null
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H 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 …]

12