#!/bin/bash

# This is a script I wrote to assign large amounts of IP's to
# a server (RHEL4 - need to restart the network service to take effect)

for I in `seq 3 254`
do
cat >> /etc/sysconfig/network-scripts/ifcfg-eth0:$(($I-2)) << EOF
DEVICE=eth0:$(($I-2))
ONBOOT=yes
BOOTPROTO=static
IPADDR=1.1.1.$I
NETMASK=255.255.255.0
EOF
done

