multiple IP's - 1 NIC

From: Paul Roddy (proddy_at_noemail.com.com)
Date: 01/15/04


Date: Thu, 15 Jan 2004 16:07:27 -0600

I've done some investigating into how to add multiple IP's to a box and
found a few ways. My question lies with the ifup-aliases way of adding
IP's.

I tried adding the following to the file ifcfg-eth0-range1
192.168.1.101
192.168.1.111
0

When I execute ifup script I get the following error:
/etc/sysconfig/network-scripts/ifup-aliases: line 1: 192.168.1.101: command
not found
/etc/sysconfig/network-scripts/ifup-aliases: line 2: 192.168.1.111: command
not found
/etc/sysconfig/network-scripts/ifup-aliases: line 3: 0: command not found
error in ifcfg-eth0-range1: IPADDR_START greater than IPADDR_END

I have been able to bring up the interfaces with adding an ifcfg-eth0:x for
each IP I want to add but I would rather use the alias file since it does
not require a file for each IP. Anyone know what I am doing wrong?