浏览代码

set networking including unset

avadapal 1 年之前
父节点
当前提交
b3edb4445e
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      Docker/set-networking.sh

+ 4 - 3
Docker/set-networking.sh

@@ -9,6 +9,7 @@ fi
 if [ "$2" != "" ]; then
     bw="$2"
 fi
-docker exec --privileged  -w /root/duoram party0 tc qdisc add dev eth0 root netem delay $latency rate $bw
-docker exec --privileged  -w /root/duoram party1 tc qdisc add dev eth0 root netem delay $latency rate $bw
-docker exec --privileged  -w /root/duoram party2 tc qdisc add dev eth0 root netem delay $latency rate $bw
+sh unset-networking.sh
+docker exec --privileged  -w /root/duoram duoram_p0 tc qdisc add dev eth0 root netem delay $latency rate $bw
+docker exec --privileged  -w /root/duoram duoram_p1 tc qdisc add dev eth0 root netem delay $latency rate $bw
+docker exec --privileged  -w /root/duoram duoram_p2 tc qdisc add dev eth0 root netem delay $latency rate $bw