Lines Matching refs:ns1
8 ns1="ns1-$rndh"
34 for netns in "$ns1" "$ns2" "$ns3";do
67 for i in "$ns1" "$ns2" "$ns3";do
74 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
75 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
78 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
79 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad
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
85 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
86 ip -net "$ns1" link set ns1eth2 up mtu 1500
87 ip -net "$ns1" route add default via 10.0.2.2 metric 101
88 ip -net "$ns1" route add default via dead:beef:2::2 metric 101
90 ip netns exec "$ns1" ./pm_nl_ctl limits 1 1
91 ip netns exec "$ns1" ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags subflow
170 ip netns exec ${ns1} tcpdump ${capopt} -w "${capfile}-connector.pcap" >> "${capout}" 2>&1 &
185 ip netns exec ${ns1} \
218 echo -e "\nnetns ${ns1} socket stat for $port:" 1>&2
219 ip netns exec ${ns1} ss -nita 1>&2 -o "dport = :$port"
242 tc -n $ns1 qdisc del dev $dev root >/dev/null 2>&1
247 tc -n $ns1 qdisc add dev ns1eth1 root netem rate ${rate1}mbit $delay1
248 tc -n $ns1 qdisc add dev ns1eth2 root netem rate ${rate2}mbit $delay2