Searched refs:ns1 (Results 1 – 25 of 53) sorted by relevance
123
258 local ns1=$1; shift264 ip link set dev veth0 netns $ns1 name veth0267 setup_common_ns $ns1 $local_addr1328 local ns1=$1; shift335 run_cmd "bridge -n $ns1 mdb add dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"337 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"340 run_cmd "bridge -n $ns1 mdb replace dev vx0 port vx0 $grp_key permanent dst $vtep_ip src_vni 10010"342 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"345 run_cmd "bridge -n $ns1 mdb del dev vx0 port vx0 $grp_key dst $vtep_ip src_vni 10010"347 run_cmd "bridge -n $ns1 -d -s mdb get dev vx0 $grp_key src_vni 10010"[all …]
100 setup_ns ns1102 ip -n $ns1 address add 192.0.2.1/32 dev lo103 ip -n $ns1 address add 198.51.100.1/32 dev lo105 ip -n $ns1 link add name vx0 up type vxlan id 100 local 198.51.100.1 \107 ip -n $ns1 link add name vx1 up type vxlan id 100 dstport 4790112 cleanup_ns $ns1123 run_cmd "bridge -n $ns1 fdb add $dmac dev vx0 self static dst 192.0.2.1 port 4790"125 run_cmd "tc -n $ns1 qdisc add dev vx1 clsact"126 …run_cmd "tc -n $ns1 filter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac ds…128 run_cmd "tc -n $ns1 qdisc add dev lo clsact"[all …]
27 ns1=""98 mptcp_lib_ns_init ns1 ns2101 for netns in "$ns1" "$ns2"; do119 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"120 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i121 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad122 ip -net "$ns1" link set ns1eth$i up138 tc -n $ns1 qdisc add dev ns1eth$i root netem rate 20mbit delay 1ms147 mptcp_lib_ns_exit "${ns1}" "${ns2}"331 for netns in "$ns1" "$ns2"; do[all …]
11 ns1=""45 mptcp_lib_ns_exit "${ns1}" "${ns2}" "${ns3}"71 mptcp_lib_ns_init ns1 ns2 ns373 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"74 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"77 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth178 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad79 ip -net "$ns1" link set ns1eth1 up mtu 150080 ip -net "$ns1" route add default via 10.0.1.281 ip -net "$ns1" route add default via dead:beef:1::2[all …]
31 ns1=""39 mptcp_lib_ns_exit "${ns1}"47 mptcp_lib_ns_init ns163 ip -n "${ns1}" mptcp limits65 ip netns exec "${ns1}" ./pm_nl_ctl limits75 mptcp_lib_pm_nl_get_endpoint "${ns1}" "${@}"83 ip -n "${ns1}" mptcp endpoint change "${addr}" "${flags}"85 ip netns exec "${ns1}" ./pm_nl_ctl set "${addr}" flags "${flags}"91 mptcp_lib_pm_nl_set_limits "${ns1}" "${@}"96 mptcp_lib_pm_nl_add_endpoint "${ns1}" "${@}"[all …]
53 ns1=""110 mptcp_lib_ns_exit "${ns1}" "${ns2}"120 mptcp_lib_ns_init ns1 ns2121 for i in "$ns1" "$ns2" ;do128 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"131 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth2132 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2133 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth2 nodad134 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad135 ip -net "$ns1" link set ns1eth2 up[all …]
129 ns1=""145 mptcp_lib_ns_exit "${ns1}" "${ns2}" "${ns3}" "${ns4}"161 mptcp_lib_ns_init ns1 ns2 ns3 ns4168 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 …]
21 ns1=""67 mptcp_lib_ns_init ns1 ns2 ns_sbox71 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 up83 mptcp_lib_pm_nl_add_endpoint "${ns1}" "10.0.${i}.1" flags signal84 mptcp_lib_pm_nl_add_endpoint "${ns1}" "dead:beef:${i}::1" flags signal90 mptcp_lib_pm_nl_set_limits "${ns1}" 8 893 add_mark_rules $ns1 1[all …]
34 do_ping "$ns1" 100.64.0.239 do_ping "$ns1" 100.64.0.343 do_ping "$ns1" dead:beef:1::244 do_ping "$ns1" dead:beef:1::371 do_ping_long "$ns1" 100.64.0.272 do_ping_long "$ns1" dead:beef:1::273 do_ping_long "$ns1" 100.64.0.374 do_ping_long "$ns1" dead:beef:1::391 do_ping_long "$ns1" 100.64.0.3 &105 do_ping_long "$ns1" 100.64.0.2[all …]
12 do_ping "${ns1}" 100.64.0.219 do_ping "${ns1}" 100.64.0.320 do_ping "${ns1}" 100.64.0.4122 do_ping "${ns1}" 100.64.0.5134 do_ping_long "${ns1}" 100.64.0.335 do_ping_long "${ns1}" 100.64.0.4137 do_ping_long "${ns1}" 100.64.0.5175 ip link add ns1eth1 netns "${ns1}" type veth peer name ns2eth1 netns "${ns2}"76 ip link add ns1eth2 netns "${ns1}" type veth peer name ns2eth2 netns "${ns2}"83 ip -n "${ns1}" link set ns1eth1 up[all …]
21 ip netns pids "$ns1" | xargs kill 2>/dev/null23 ip netns del "$ns1"29 setup_ns ns1 ns231 if ! ip link add veth0 netns "$ns1" type veth peer name veth0 netns "$ns2" > /dev/null 2>&1;then36 ip -net "$ns1" link set veth0 up39 ip -net "$ns1" addr add 10.0.1.1/24 dev veth040 ip -net "$ns1" addr add dead:1::1/64 dev veth0 nodad120 ip netns exec "$ns1" socat -u -4 STDIN TCP:10.0.1.2:"$port" < /dev/null > /dev/null122 check_for_helper "$ns1" "ip $msg" "$port" "$autoassign"129 ip netns exec "$ns1" conntrack -F 2> /dev/null[all …]
24 setup_ns nsrouter ns1 ns2105 load_ruleset "$ns1"108 if ! ip link add veth0 netns "$nsrouter" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1; th…122 ip -net "$ns1" link set eth0 up125 ip -net "$ns1" addr add 10.0.1.99/24 dev eth0126 ip -net "$ns1" addr add dead:1::99/64 dev eth0 nodad127 ip -net "$ns1" route add default via 10.0.1.1128 ip -net "$ns1" route add default via dead:1::1139 if ! ip netns exec "$ns1" ping -c 1 -q "$daddr4" > /dev/null; then141 echo "FAIL: ${ns1} cannot reach $daddr4, ret $ret" 1>&2[all …]
17 ip netns pids "$ns1" | xargs kill 2>/dev/null30 setup_ns ns0 ns1 ns232 if ! ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1;then58 do_config "$ns1" 1143 for i in "$ns0" "$ns1" "$ns2" ;do181 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat6 1"197 if ! ip netns exec "$ns1" nft list counter inet filter "ns0${dir}" | grep -q "$expect";then198 bad_counter "$ns1" ns0$dir "$expect" "test_local_dnat6 3"212 test $lret -eq 0 && echo "PASS: ipv6 ping to $ns1 was $family NATted to $ns2"272 if ! ip netns exec "$ns1" nft list counter inet filter ns0${dir} | grep -q "$expect";then[all …]
59 setup_ns ns0 ns1 ns261 ip link add veth01 netns "${ns0}" type veth peer name veth10 netns "${ns1}"63 ip link add veth12 netns "${ns1}" type veth peer name veth21 netns "${ns2}"73 ip netns exec "${ns1}" ip link set veth10 up74 ip netns exec "${ns1}" ip addr add "${gip_v4}/24" dev veth1075 ip netns exec "${ns1}" ip link set veth12 up76 ip netns exec "${ns1}" ip addr add "${dip_v4}/24" dev veth12124 ip netns exec "${ns1}" sysctl -qw net.ipv4.ip_forward=1125 ip netns exec "${ns1}" ipvsadm -A -t "${vip_v4}:${port}" -s rr126 ip netns exec "${ns1}" ipvsadm -a -t "${vip_v4}:${port}" -r "${rip_v4}:${port}"[all …]
23 setup_ns nsbr ns1 ns227 if ! ip link add veth0 netns "$nsbr" type veth peer name eth0 netns "$ns1"; then47 ip -net "$ns1" link set eth0 up49 ip -net "$ns1" addr add 10.0.0.11/24 dev eth064 if ip netns exec "$ns1" ping -q -c 1 10.0.0.12 -W 0.5 > /dev/null 2>&1; then76 if ! ip netns exec "$ns1" ping -q -c 1 10.0.0.12 > /dev/null; then81 echo "PASS: ${ns1}/${ns2} connectivity with active broute rule"85 if ! ip netns exec "$ns1" ping -q -c 1 10.0.0.12 > /dev/null; then93 if ip netns exec "$ns1" ping -q -c 1 10.0.0.12 -W 0.5 > /dev/null 2>&1; then106 echo "PASS: ${ns1}/${ns2} connectivity with active broute rule and bridge forward drop"[all …]
15 ip netns pids "$ns1" | xargs kill 2>/dev/null34 setup_ns ns1 ns2 ns3 nsrouter46 if ! ip link add veth0 netns "$nsrouter" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1; th…65 ip -net "$ns1" link set eth0 up69 ip -net "$ns1" addr add 10.0.1.99/24 dev eth070 ip -net "$ns1" addr add dead:1::99/64 dev eth0 nodad71 ip -net "$ns1" route add default via 10.0.1.172 ip -net "$ns1" route add default via dead:1::1151 if ! ip netns exec "$ns1" ping -c 1 -q 10.0.2.99 > /dev/null; then155 if ! ip netns exec "$ns1" ping -c 1 -q dead:2::99 > /dev/null; then[all …]
22 setup_ns ns133 ip netns exec "$ns1" nft -f /dev/stdin<<EOF51 ip netns exec "$ns1" sysctl -q net.netfilter.nf_conntrack_udp_timeout=360063 ) | ip netns exec "$ns1" nft -f /dev/stdin78 …dd if=/dev/zero bs=8k count=1000 2>/dev/null | ip netns exec "$ns1" socat -u STDIN UDP:127.0.0.1:1…91 count=$(ip netns exec "$ns1" conntrack -C)97 ip netns exec "$ns1" conntrack -S 1>&2111 ip netns exec "$ns1" conntrack -F >/dev/null 2>/dev/null120 ip netns exec "$ns1" conntrack -I -s 1.1.1.1 -d 2.2.2.2 --protonum 6 \123 ip netns exec "$ns1" conntrack -I -s 1.1.1.1 -d 2.2.2.2 --protonum 6 \[all …]
22 ip netns pids "$ns1" | xargs kill 2>/dev/null51 setup_ns ns1 ns254 ip -net "$ns1" link add name veth1 type veth peer name veth255 ip -net "$ns1" link set netns "$ns2" dev veth257 ip -net "$ns1" link set up dev lo59 ip -net "$ns1" link set up dev veth168 ip netns exec "$ns1" nft -f - <<EOF77 ip -net "$ns1" addr add 10.11.11.1/24 dev veth178 ip -net "$ns1" route add 10.99.99.99 via 10.11.11.281 ip netns exec "$ns1" ping -q -c 2 10.11.11.2 >/dev/null || exit 1[all …]
31 setup_ns ns1 ns2 nsr1 nsr234 ip netns pids "$ns1" | xargs kill 2>/dev/null48 ip link add veth0 netns "$nsr1" type veth peer name eth0 netns "$ns1"101 ip -net "$ns1" link set eth0 mtu "$omtu"130 for ns in "$ns1" "$ns2";do141 ip -net "$ns1" addr add 10.0.1.99/24 dev eth0143 ip -net "$ns1" route add default via 10.0.1.1145 ip -net "$ns1" addr add dead:1::99/64 dev eth0 nodad147 ip -net "$ns1" route add default via dead:1::1207 if ! ip netns exec "$ns1" ping -c 1 -q 10.0.2.99 > /dev/null; then[all …]
34 ip netns pids "$ns1" | xargs kill 2>/dev/null46 setup_ns ns1 ns2 ns3 nsrouter48 if ! ip link add veth0 netns "$nsrouter" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1; th…67 ip -net "$ns1" link set eth0 up71 ip -net "$ns1" addr add 10.0.1.99/24 dev eth072 ip -net "$ns1" addr add dead:1::99/64 dev eth0 nodad73 ip -net "$ns1" route add default via 10.0.1.174 ip -net "$ns1" route add default via dead:1::192 if ! ip netns exec "$ns1" ping -c 1 -q 10.0.2.99 > /dev/null; then96 if ! ip netns exec "$ns1" ping -c 1 -q dead:2::99 > /dev/null; then[all …]
11 setup_ns nsr ns1 ns216 ip netns pids "$ns1" | xargs kill 2>/dev/null24 ip link add veth0 netns "$nsr" type veth peer name eth0 netns "$ns1"38 for n in $ns1 $ns2; do41 ip -net "$ns1" addr add 10.0.1.99/24 dev eth043 ip -net "$ns1" route add default via 10.0.1.147 if ! ip netns exec "$ns1" ping -c 1 -q 10.0.2.99 > /dev/null; then48 echo "ERROR: $ns1 cannot reach $ns2" 1>&253 echo "ERROR: $ns2 cannot reach $ns1" 1>&288 if ! ip netns exec "$ns1" timeout 5 iperf3 -c 10.0.2.99 -n $((1 * 1024 * 1024)) > /dev/null; then
36 ns1="ns1-$sfx"38 trap "ip netns del $ns1; ip netns del $ns2" EXIT42 ip netns add "$ns1"49 ip -net "$ns1" link add v0 type veth peer name v0 netns "$ns2"50 ip -net "$ns1" link set v0 up; ip -net "$ns2" link set v0 up51 ip -net "$ns1" a a 192.168.23.2/24 dev v053 ip -net "$ns1" a a fec0:23::2/64 dev v0 nodad59 ip -net "$ns1" a a 192.168.42.2/24 dev v061 ip -net "$ns1" a a fec0:42::2/64 dev v0 nodad136 netns_ping "$ns1" -I v0 192.168.42.1 && \[all …]
23 setup_ns ns1 ns227 ip link set netns "$ns1" dev veth130 ip netns exec "$ns1" ip link set up dev lo31 ip netns exec "$ns1" ip link set up dev veth132 ip netns exec "$ns1" ip addr add 192.168.1.1/24 dev veth139 ip netns exec "$ns1" socat -u TCP-LISTEN:5201,fork OPEN:/dev/null,wronly=1 &71 ip netns exec "$ns1" iptables -t nat -A PREROUTING -p tcp --dport 5202 -j REDIRECT --to-ports 520172 ip netns exec "$ns1" iptables -t nat -A PREROUTING -p tcp --dport 5203 -j REDIRECT --to-ports 5201
11 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 off37 ip -netns "${ns1}" link set veth1 up40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth142 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad46 ip -netns "${ns1}" -4 route flush table main47 ip -netns "${ns1}" -6 route flush table main48 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1[all …]