You need to have IP Aliasing support enabled in the kernel. Then just configure it like any other interface. I have the following in /etc/rc.config: NETDEV_0="eth0" NETDEV_1="eth1" NETDEV_2="lo:1" NETDEV_3="lo:2" # # parameteres for ifconfig, simply enter "bootp" or "dhcpclient" to use the # respective service for configuration # sample entry for ethernet: # IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224" # IFCONFIG_0="dhcpclient" IFCONFIG_1="192.168.169.1 broadcast 192.168.169.255 netmask 255.255.255.0 up" IFCONFIG_2="192.168.13.99 broadcast 192.168.13.255 netmask 255.255.255.0 up" IFCONFIG_3="192.168.13.100 broadcast 192.168.13.255 netmask 255.255.255.0 up" Notice two extra addresses on the loopback device, lo:1, and lo:2. You can add them to "real" network interfaces, e.g., eth1:1 and eth1:2. HTH, Jeffrey Quoting Nicholas Webb <nickw@uidaho.edu>:
Hi,
I'm trying to setup two IP addresses on one network card in one machine . . . anyone know how to do this? I know there must be a way, but I can't find anything . . .
Thanks.
/---------------------------------------------------------------\ | Nick Webb ---------------------------------- ITS Lab Software | | http://www.uidaho.edu/~nickw ------------ University of Idaho | ---------------------------------------------------------------/
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck