Skip to content

Commit

Permalink
trying to fix maxtop, need iptables and small change to script.
Browse files Browse the repository at this point in the history
  • Loading branch information
marklee77 committed Oct 7, 2015
1 parent d3ec67f commit 38b83c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update && \
htop \
infiniband-diags \
iperf \
iptables \
less \
libatlas-base-dev \
libatlas3gf-base \
Expand Down
4 changes: 2 additions & 2 deletions conpaas-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fi
if [ -d /dev/infiniband ]; then
echo 1 > /proc/sys/net/ipv4/ip_forward
ip link add ib0 type dummy
ip address add 192.168.0.0/24 broadcast 192.168.0.255 dev ib0
ip address add 192.168.0.0/25 broadcast 192.168.0.127 dev ib0
ip link set ib0 up
route add 192.168.0.10 gw 172.17.42.1
route add 192.168.0.129 gw 172.17.42.1
route add 192.168.0.1 gw 172.17.42.1
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
fi
Expand Down

0 comments on commit 38b83c0

Please sign in to comment.