Skip to content

Commit 38b83c0

Browse files
committed
trying to fix maxtop, need iptables and small change to script.
1 parent d3ec67f commit 38b83c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && \
1616
htop \
1717
infiniband-diags \
1818
iperf \
19+
iptables \
1920
less \
2021
libatlas-base-dev \
2122
libatlas3gf-base \

conpaas-worker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ fi
2323
if [ -d /dev/infiniband ]; then
2424
echo 1 > /proc/sys/net/ipv4/ip_forward
2525
ip link add ib0 type dummy
26-
ip address add 192.168.0.0/24 broadcast 192.168.0.255 dev ib0
26+
ip address add 192.168.0.0/25 broadcast 192.168.0.127 dev ib0
2727
ip link set ib0 up
28-
route add 192.168.0.10 gw 172.17.42.1
28+
route add 192.168.0.129 gw 172.17.42.1
2929
route add 192.168.0.1 gw 172.17.42.1
3030
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
3131
fi

0 commit comments

Comments
 (0)