nsbin/ips-dup

19 lines
238 B
Text
Raw Normal View History

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