Lines Matching refs:ns1
5 ns1="ns1-$rndh"
31 for netns in "$ns1" "$ns2" "$ns3";do
62 for i in "$ns1" "$ns2" "$ns3";do
69 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
70 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
73 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
74 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad
75 ip -net "$ns1" link set ns1eth1 up mtu 1500
76 ip -net "$ns1" route add default via 10.0.1.2
77 ip -net "$ns1" route add default via dead:beef:1::2
79 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
80 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
81 ip -net "$ns1" link set ns1eth2 up mtu 1500
82 ip -net "$ns1" route add default via 10.0.2.2 metric 101
83 ip -net "$ns1" route add default via dead:beef:2::2 metric 101
85 ip netns exec "$ns1" ./pm_nl_ctl limits 1 1
86 ip netns exec "$ns1" ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags subflow
168 ip netns exec ${ns1} tcpdump ${capopt} -w "${capfile}-connector.pcap" >> "${capout}" 2>&1 &
183 ip netns exec ${ns1} \
216 echo -e "\nnetns ${ns1} socket stat for $port:" 1>&2
217 ip netns exec ${ns1} ss -nita 1>&2 -o "dport = :$port"
240 tc -n $ns1 qdisc del dev $dev root >/dev/null 2>&1
245 tc -n $ns1 qdisc add dev ns1eth1 root netem rate ${rate1}mbit $delay1
246 tc -n $ns1 qdisc add dev ns1eth2 root netem rate ${rate2}mbit $delay2