Searched refs:netns (Results 1 – 25 of 43) sorted by relevance
12
111 ip netns add "${NS1}"112 ip netns add "${NS2}"113 ip netns add "${NS3}"120 ip netns exec ${NS2} sysctl -wq net.ipv4.ip_forward=1121 ip netns exec ${NS2} sysctl -wq net.ipv6.conf.all.forwarding=1123 ip link set veth1 netns ${NS1}124 ip link set veth2 netns ${NS2}125 ip link set veth3 netns ${NS2}126 ip link set veth4 netns ${NS3}127 ip link set veth5 netns ${NS1}[all …]
44 ip netns del ns1 2> /dev/null45 ip netns del ns2 2> /dev/null46 ip netns del ns3 2> /dev/null47 ip netns del ns4 2> /dev/null48 ip netns del ns5 2> /dev/null49 ip netns del ns6 2> /dev/null55 ip netns add ns156 ip netns add ns257 ip netns add ns358 ip netns add ns4[all …]
56 ip netns del ns1 2> /dev/null57 ip netns del ns2 2> /dev/null126 ip netns del ns1 2> /dev/null127 ip netns del ns2 2> /dev/null144 ip netns add ns1145 ip netns add ns2154 ip link set veth1 netns ns1155 ip link set veth2 netns ns2162 ip netns exec ns1 ethtool -K veth1 rxvlan off163 ip netns exec ns2 ethtool -K veth2 rxvlan off[all …]
13 ip netns del ns1 2> /dev/null14 ip netns del ns2 2> /dev/null24 ip netns add ns125 ip netns add ns231 ip link set veth1 netns ns132 ip link set veth2 netns ns234 ip netns exec ns1 ip addr add 10.1.1.11/24 dev veth135 ip netns exec ns2 ip addr add 10.1.1.22/24 dev veth237 ip netns exec ns1 tc qdisc add dev veth1 clsact38 ip netns exec ns2 tc qdisc add dev veth2 clsact[all …]
30 ip netns del ${NS_SRC}31 ip netns del ${NS_DST}38 ip netns add "${NS_SRC}"39 ip netns add "${NS_DST}"41 ip link set veth_src netns ${NS_SRC}42 ip link set veth_dst netns ${NS_DST}44 ip -netns ${NS_SRC} addr add ${IP_SRC}/24 dev veth_src45 ip -netns ${NS_DST} addr add ${IP_DST}/24 dev veth_dst47 ip -netns ${NS_SRC} link set dev veth_src up48 ip -netns ${NS_DST} link set dev veth_dst up[all …]
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 off36 ip -netns "${ns1}" link set veth1 up37 ip -netns "${ns2}" link set veth2 up39 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth140 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth241 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad[all …]
24 ip netns del ns1 2> /dev/null25 ip netns del ns2 2> /dev/null35 ip netns add ns136 ip netns add ns243 ip link set veth11 netns ns144 ip link set veth22 netns ns249 ip netns exec ns1 ip addr add 10.1.1.11/24 dev veth1150 ip netns exec ns2 ip addr add 10.1.1.22/24 dev veth2252 ip netns exec ns1 ip link set dev veth11 up53 ip netns exec ns2 ip link set dev veth22 up[all …]
56 ip netns add at_ns058 ip link set veth0 netns at_ns059 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth060 ip netns exec at_ns0 ip link set dev veth0 up68 ip netns exec at_ns0 \71 ip netns exec at_ns0 ip link set dev $DEV_NS up72 ip netns exec at_ns0 ip addr add dev $DEV_NS 10.1.1.100/2484 ip netns exec at_ns0 ip addr add ::11/96 dev veth085 ip netns exec at_ns0 ip link set dev veth0 up90 ip netns exec at_ns0 \[all …]
117 addr=$(ip -netns $ns -6 -br addr show dev ${dev} | \142 ip netns del $ns 2>/dev/null150 ip -netns ${ns} link add ${VRF} type vrf table ${VRF_TABLE}151 ip -netns ${ns} link set ${VRF} up152 ip -netns ${ns} route add vrf ${VRF} unreachable default metric 8192153 ip -netns ${ns} -6 route add vrf ${VRF} unreachable default metric 8192155 ip -netns ${ns} addr add 127.0.0.1/8 dev ${VRF}156 ip -netns ${ns} -6 addr add ::1 dev ${VRF} nodad158 ip -netns ${ns} ru del pref 0159 ip -netns ${ns} ru add pref 32765 from all lookup local[all …]
12 ip netns add "${NETNS}"13 ip -netns "${NETNS}" link set lo up15 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&116 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&117 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&119 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&120 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&121 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&123 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null…24 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_low_thresh=7000000 >/dev/null…[all …]
53 ip netns del $ns || true69 ip netns add hv-$hv70 ip link set veth-hv-$hv netns hv-$hv71 ip -netns hv-$hv link set veth-hv-$hv name veth073 ip -netns hv-$hv link add vrf-underlay type vrf table 174 ip -netns hv-$hv link set vrf-underlay up75 ip -netns hv-$hv addr add 172.16.0.$hv/24 dev veth076 ip -netns hv-$hv link set veth0 up78 ip -netns hv-$hv link add br0 type bridge79 ip -netns hv-$hv link set br0 up[all …]
75 ip netns del ${ns} 2>/dev/null77 ip netns add ${ns}78 ip -netns ${ns} addr add 127.0.0.1/8 dev lo79 ip -netns ${ns} link set lo up81 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=184 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=087 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=188 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1111 ip -netns h${i} li add eth0 type veth peer name r1h${i}112 ip -netns h${i} li set eth0 up[all …]
60 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)83 ip netns add ${ns}85 ip -netns ${ns} link set lo up87 ip -netns ${ns} addr add dev lo ${addr}90 ip -netns ${ns} -6 addr add dev lo ${addr6}93 ip -netns ${ns} ro add unreachable default metric 819294 ip -netns ${ns} -6 ro add unreachable default metric 819296 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=197 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=198 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1[all …]
76 ip netns del "${NS2}"77 ip netns del "${NS1}"87 ip netns add "${NS1}"88 ip netns add "${NS2}"90 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \91 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}"94 ip -netns "${NS1}" link set "${DEV}" up95 ip -netns "${NS2}" link set "${DEV}" up98 ip -netns "${NS1}" link set dev "${DEV}" address 02:02:02:02:02:0299 ip -netns "${NS2}" link set dev "${DEV}" address 06:06:06:06:06:06[all …]
13 ip netns add "${NETNS}"14 ip -netns "${NETNS}" link set lo up15 ip netns exec "${NETNS}" sysctl -w net.ipv4.tcp_fastopen=3 \20 ip netns del "${NETNS}"29 ip netns exec "${NETNS}" ip tcp_metrics flush30 ip netns exec "${NETNS}" ./tcp_fastopen_backup_key "$1"31 val=$(ip netns exec "${NETNS}" nstat -az | \
13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null18 ip netns add "${PEER_NS}"19 ip -netns "${PEER_NS}" link set lo up25 ip link set dev veth1 netns "${PEER_NS}"26 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/2427 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad28 ip -netns "${PEER_NS}" link set dev veth1 up40 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${rx_args} && \75 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}78 …ip netns exec "${PEER_NS}" $ipt_cmd -t nat -I PREROUTING -d ${addr1} -j DNAT --to-destination ${ad…[all …]
9 ip netns add "${PEER_NS}"10 ip -netns "${PEER_NS}" link set dev lo up13 ip link set dev veth1 netns "${PEER_NS}"17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=119 ip netns exec "${PEER_NS}" ip route del 127.0.0.0/8 dev lo table local22 ip netns exec "${PEER_NS}" ifconfig veth1 127.25.3.14/24 up25 ip netns exec "${PEER_NS}" ip route flush cache32 [ -n "$ns" ] && ip netns del $ns 2>/dev/null41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=258 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null25 ip netns add "${PEER_NS}"26 ip -netns "${PEER_NS}" link set lo up32 ip link set dev veth1 netns "${PEER_NS}"33 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/2434 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad35 ip -netns "${PEER_NS}" link set dev veth1 up38 ip netns exec "${PEER_NS}" ./udpgso_bench_rx ${rx_args} -r &39 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -t ${rx_args} -r &
433 ip -netns "$testns" link add "$vxlan" type vxlan id 42 group 239.1.1.1 \441 ip -netns "$testns" addr add 10.2.11.49/24 dev "$vxlan"444 ip -netns "$testns" link set up dev "$vxlan"447 ip -netns "$testns" link add link "$vxlan" name "$vlan" type vlan id 1451 ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43 2>/dev/null454 ip -netns "$testns" link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 2>/dev/null457 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl inherit 2>/dev/null460 ip -netns "$testns" link set dev "$vxlan" type vxlan ttl 64463 ip -netns "$testns" link set dev "$vxlan" type vxlan nolearning466 ip -netns "$testns" link set dev "$vxlan" type vxlan proxy 2>/dev/null[all …]
11 ip netns add "${NETNS}"12 ip -netns "${NETNS}" link set lo up16 ip netns del "${NETNS}"22 ip netns exec "${NETNS}" "$@"
26 ip netns add ns027 ip netns add ns128 ip netns add ns230 ip link add veth0 netns ns0 type veth peer name eth0 netns ns135 ip link add veth1 netns ns0 type veth peer name eth0 netns ns265 …ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect…72 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&182 ip netns exec ns0 sysctl -q net.ipv4.conf.veth0.forwarding=183 ip netns exec ns0 sysctl -q net.ipv4.conf.veth1.forwarding=187 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null[all …]
18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done33 ip netns add "$ns0"41 ip netns add "$ns1"47 ip netns add "$ns2"53 ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&158 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2"86 ip netns exec $ns nft list counter inet filter $counter 1>&294 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84")99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84")106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect")[all …]
34 for i in 1 2;do ip netns del nsclient$i;done35 for i in 1 2;do ip netns del nsrouter$i;done53 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect")56 ip netns exec $ns nft list counter inet filter "$name" 1>&277 ip netns add $n82 ip link add $DEV netns nsclient1 type veth peer name eth1 netns nsrouter184 ip link add $DEV netns nsclient2 type veth peer name eth1 netns nsrouter287 ip link add $DEV netns nsrouter1 type veth peer name eth2 netns nsrouter2125 ip netns exec nsrouter1 sysctl -q net.ipv$i.conf.all.forwarding=1126 ip netns exec nsrouter2 sysctl -q net.ipv$i.conf.all.forwarding=1[all …]
42 ip netns add nsr148 ip netns add ns149 ip netns add ns251 ip netns add nsr255 ip netns del ns$i56 ip netns del nsr$i69 ip link add veth0 netns nsr1 type veth peer name eth0 netns ns170 ip link add veth1 netns nsr1 type veth peer name veth0 netns nsr272 ip link add veth1 netns nsr2 type veth peer name eth0 netns ns2107 ip netns exec nsr$i sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null[all …]
49 ip netns add "$testns"50 ip -netns "$testns" link set lo up56 ip netns exec "$testns" taskset $mask ping -4 127.0.0.1 -fq > /dev/null &57 ip netns exec "$testns" taskset $mask ping -6 ::1 -fq > /dev/null &62 for i in $(seq 1 10) ; do ip netns exec "$testns" nft -f "$tmp" & done67 ip netns exec "$testns" nft delete table inet $table 2>/dev/null78 ip netns del "$testns"