Script to assign mutiple IP's to 1 nic

I need a script to assign multiple IP addresses to a single nic.
The machine is running CentOS.

Any help would be appreciated.

one NIC can't have more than one IP address assigned, the "inet addr" section may accept only one IP. Are you looking for dhcp ?

This can be done using aliases..

on FreeBSD add something like this to your /etc/rc.conf

ifconfig_rl0="inet 192.168.x.xxx netmask 255.255.255.0"
hostname="yourhostnamet"
ifconfig_rl0_alias0="192.168.x.xxx netmask 255.255.255.0"

on Linux heres a howto

http://www.linuxselfhelp.com/HOWTO/mini/IP-Alias/