nsbin/ips-dup
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

18 lines
238 B
Text

START="1"
END="254"
DEVICE="eth0"
BASE_IP="192.168.0."
i=$START
if [ $# -lt 1 ]; then
echo "So nicht meister."
echo "$0 [up|down]"
exit 1
fi
while [ $i -lt $END ]; do
ifconfig "$DEVICE":"$[i+3]" "$BASE_IP""$i" $1
i=$[$i+1]
done