ips-dup 238 Bytes
Newer Older
Nico Schottelius's avatar
init  
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

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