Searched refs:ns1 (Results 1 – 25 of 41) sorted by relevance
12
29 ns1="ns1-$rndh"36 ip netns del $ns149 ip netns add $ns1 || exit $ksft_skip50 ip -net $ns1 link set lo up51 ip netns exec $ns1 sysctl -q net.mptcp.enabled=175 check "ip netns exec $ns1 ./pm_nl_ctl dump" "" "defaults addr list"77 default_limits="$(ip netns exec $ns1 ./pm_nl_ctl limits)"79 check "ip netns exec $ns1 ./pm_nl_ctl limits" "accept 083 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.184 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo[all …]
50 ns1="ns1-$rndh"53 for netns in "$ns1" "$ns2";do71 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"72 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i73 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad74 ip -net "$ns1" link set ns1eth$i up89 tc -n $ns1 qdisc add dev ns1eth$i root netem rate 20mbit delay 198 for netns in "$ns1" "$ns2"; do121 for netns in "$ns1" "$ns2";do138 ip netns exec $ns1 sysctl -q net.mptcp.add_addr_timeout=1[all …]
7 ns1="ns1-$rndh"32 for netns in "$ns1" "$ns2" "$ns3";do64 for i in "$ns1" "$ns2" "$ns3";do71 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"72 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"75 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth176 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad77 ip -net "$ns1" link set ns1eth1 up mtu 150078 ip -net "$ns1" route add default via 10.0.1.279 ip -net "$ns1" route add default via dead:beef:1::2[all …]
40 ns1="ns1-$rndh"43 for netns in "$ns1" "$ns2";do52 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"53 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i54 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad55 ip -net "$ns1" link set ns1eth$i up64 ip netns exec $ns1 ./pm_nl_ctl add 10.0.$i.1 flags signal65 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:$i::1 flags signal71 ip netns exec $ns1 ./pm_nl_ctl limits 8 874 add_mark_rules $ns1 1[all …]
123 ns1="ns1-$rndh"137 for netns in "$ns1" "$ns2" "$ns3" "$ns4";do158 for i in "$ns1" "$ns2" "$ns3" "$ns4";do168 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"172 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth2173 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth2 nodad175 ip -net "$ns1" link set ns1eth2 up176 ip -net "$ns1" route add default via 10.0.1.2177 ip -net "$ns1" route add default via dead:beef:1::2210 for i in "$ns1" "$ns2" "$ns3" "$ns4";do[all …]
12 ns1="ns1-$sfx"18 ip netns del ${ns1}48 ip netns add ${ns1}51 ip link add veth0 netns ${ns1} type veth peer name veth0 netns ${ns2} > /dev/null 2>&157 ip -net ${ns1} link set lo up58 ip -net ${ns1} link set veth0 up63 ip -net ${ns1} addr add 10.0.1.1/24 dev veth064 ip -net ${ns1} addr add dead:1::1/64 dev veth0120 sleep 1 | ip netns exec ${ns1} nc -w 2 10.0.1.2 $port > /dev/null &123 check_for_helper "$ns1" "ip $msg" $port[all …]
10 ns1="ns1-$sfx"19 ip netns del ${ns1}53 ip netns add ${ns1}116 load_ruleset ${ns1}119 ip link add veth0 netns ${nsrouter} type veth peer name eth0 netns ${ns1} > /dev/null 2>&1135 ip -net ${ns1} link set lo up136 ip -net ${ns1} link set eth0 up141 ip -net ${ns1} addr add 10.0.1.99/24 dev eth0142 ip -net ${ns1} addr add dead:1::99/64 dev eth0143 ip -net ${ns1} route add default via 10.0.1.1[all …]
70 ip netns add ns173 ip link add veth01 netns ns0 type veth peer name veth10 netns ns175 ip link add veth12 netns ns1 type veth peer name veth21 netns ns285 ip netns exec ns1 ip link set lo up86 ip netns exec ns1 ip link set veth10 up87 ip netns exec ns1 ip addr add ${gip_v4}/24 dev veth1088 ip netns exec ns1 ip link set veth12 up89 ip netns exec ns1 ip addr add ${dip_v4}/24 dev veth12141 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1142 ip netns exec ns1 ipvsadm -A -t ${vip_v4}:${port} -s rr[all …]
12 ns1="ns1-$sfx"17 ip netns del $ns139 ip netns add "$ns1"41 echo "SKIP: Could not create net namespace $ns1"51 ip link set netns $ns1 dev veth154 ip netns exec $ns1 ip link set up dev lo55 ip netns exec $ns1 ip link set up dev veth156 ip netns exec $ns1 ip addr add 192.168.1.1/24 dev veth163 ip netns exec $ns1 iperf3 -s > /dev/null 2>&1 &
13 ns1="ns1-$sfx"41 ip netns add "$ns1"43 echo "SKIP: Could not create net namespace $ns1"53 ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1207 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns1${dir} | grep -q "$expect")209 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat6 1"226 cnt=$(ip netns exec "$ns1" nft list counter inet filter ns0${dir} | grep -q "$expect")228 bad_counter "$ns1" ns0$dir "$expect" "test_local_dnat6 3"243 test $lret -eq 0 && echo "PASS: ipv6 ping to $ns1 was $family NATted to $ns2"287 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns1${dir} | grep -q "$expect")[all …]
13 ns1="ns1-$sfx"29 ip netns pids $ns1 | xargs kill 2>/dev/null32 ip netns del $ns158 ip netns add $ns1 || exit 165 ip -net $ns1 link add name veth1 type veth peer name veth266 ip -net $ns1 link set netns $ns2 dev veth268 ip -net $ns1 link set up dev lo70 ip -net $ns1 link set up dev veth179 ip netns exec $ns1 iptables -A INPUT -m state --state established,related -j ACCEPT81 ip -net $ns1 addr add 10.11.11.1/24 dev veth1[all …]
18 ns1="ns1-$sfx"46 ip netns add $ns151 ip netns del $ns166 ip link add veth0 netns $nsr1 type veth peer name eth0 netns $ns1116 ip -net $ns1 link set eth0 mtu $omtu137 for ns in $ns1 $ns2;do149 ip -net $ns1 addr add 10.0.1.99/24 dev eth0151 ip -net $ns1 route add default via 10.0.1.1153 ip -net $ns1 addr add dead:1::99/64 dev eth0155 ip -net $ns1 route add default via dead:1::1[all …]
12 ns1="ns1-$sfx"19 ip netns del ${ns1}51 ip netns add ${ns1}54 ip link add veth0 netns ${nsrouter} type veth peer name eth0 netns ${ns1} > /dev/null 2>&170 ip -net ${ns1} link set lo up71 ip -net ${ns1} link set eth0 up76 ip -net ${ns1} addr add 10.0.1.99/24 dev eth077 ip -net ${ns1} addr add dead:1::99/64 dev eth078 ip -net ${ns1} route add default via 10.0.1.179 ip -net ${ns1} route add default via dead:1::1[all …]
27 ip netns add ns130 ip link add veth0 netns ns0 type veth peer name eth0 netns ns172 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&187 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null97 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null106 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&1126 ip netns exec ns1 ping -c 1 -q 10.0.0.12 > /dev/null
40 ns1="ns1-$sfx"45 ip netns pids $ns1 | xargs kill 2>/dev/null47 ip netns del $ns0 $ns167 ip netns add "$ns1"75 ip link add veth0 netns "$ns0" type veth peer name veth0 netns "$ns1" > /dev/null 2>&192 ip -net $ns1 li set veth0 up95 ip -net $ns1 addr add $IP1/$PFXL dev veth097 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
56 ip netns del ns1 2> /dev/null126 ip netns del ns1 2> /dev/null144 ip netns add ns1154 ip link set veth1 netns ns1162 ip netns exec ns1 ethtool -K veth1 rxvlan off167 ip netns exec ns1 ethtool -K veth1 txvlan off173 ip netns exec ns1 ip addr add ${IPADDR1}/24 dev veth1174 ip netns exec ns1 ip link set veth1 up185 ip netns exec ns1 ip link set lo up202 ip netns exec ns1 ip link set $DEVNS1 $XDP_MODE object $FILE section $XDP_PROG[all …]
13 ip netns del ns1 2> /dev/null24 ip netns add ns131 ip link set veth1 netns ns134 ip netns exec ns1 ip addr add 10.1.1.11/24 dev veth137 ip netns exec ns1 tc qdisc add dev veth1 clsact40 ip netns exec ns1 tc filter add dev veth1 ingress bpf da obj test_xdp_meta.o sec t43 ip netns exec ns1 ip link set dev veth1 xdp obj test_xdp_meta.o sec x46 ip netns exec ns1 ip link set dev veth1 up49 ip netns exec ns1 ping -c 1 10.1.1.22
20 ip netns add ns123 ip link add veth1 index 111 type veth peer name veth11 netns ns128 ip -n ns1 link set dev veth11 up31 ip -n ns1 addr add 10.1.1.11/24 dev veth1139 ip netns del ns1 2> /dev/null55 ip -n ns1 link set veth11 $xdpmode obj xdp_dummy.o sec xdp &> /dev/null60 if ip netns exec ns1 ping -c 1 10.1.1.22 &> /dev/null &&
10 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 off36 ip -netns "${ns1}" link set veth1 up39 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth141 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad45 ip -netns "${ns1}" -4 route flush table main46 ip -netns "${ns1}" -6 route flush table main47 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1[all …]
130 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 …]
32 ip netns del ns1 2> /dev/null80 ip netns add ns184 ip link add veth1 index 111 type veth peer name veth11 netns ns192 ip -n ns1 addr add 10.1.1.11/24 dev veth1195 ip -n ns1 link set dev veth11 up110 ip -n ns1 link set dev veth11 xdp obj xdp_dummy.o sec xdp116 ip netns exec ns1 ping -c 1 -W 1 10.1.1.33
44 ip netns del ns1 2> /dev/null55 ip netns add ns170 ip link set veth1 netns ns181 ip netns exec ns1 ip link set dev veth1 up94 ip netns exec ns1 ip -6 addr add fb00::12/16 dev veth1 scope link95 ip netns exec ns1 ip -6 route add fb00::21 dev veth1 scope link111 ip netns exec ns1 ip -6 addr add fb00::1/16 dev lo112 ip netns exec ns1 ip -6 route add fb00::6 dev veth1 via fb00::21130 ip netns exec ns1 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null141 ip netns exec ns1 bash -c "echo 'foobar' | nc -w0 -6 -u -p 2121 -s fb00::1 fb00::6 7330"
31 ip netns exec ns1 "$@"36 ip netns add ns150 ip netns del ns1 2>/dev/null || :
53 ip netns add ns154 ip netns set ns1 auto59 ip link set veth1 netns ns173 ip netns del ns1148 a2=$(get_linklocal veth0 ns1)
390 ip netns add ns1391 ip link set dev v2 netns ns1392 in_ns ns1 ns_init397 ip netns exec ns1 ip link set dev v2 netns 1398 ip netns del ns1423 local h1_ns_mac=$(in_ns ns1 mac_get w2)424 local h2_ns_mac=$(in_ns ns1 mac_get w4)429 in_ns ns1 macs_populate $h1_mac $h2_mac 10.1.1.101 10.1.2.101 10.0.0.1493 ip neigh replace 10.1.1.102 lladdr $(in_ns ns1 mac_get w2) nud noarp \495 ip neigh replace 10.1.2.102 lladdr $(in_ns ns1 mac_get w4) nud noarp \[all …]