Make sure your kernel supports ip aliasing then:
You only put in one gateway.  eth1 and eth1:0 and eth1:1 are three different
interfaces.  However if you type in: 'ifdown eth1' ALL eth1(:[0-9]{1,})? interfaces 
will be taken down.

Cory

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
iface lo inet loopback

# Ethernet interfaces
                                # Internal Lan
iface eth0 inet static
    address 10.0.0.1
    netmask 255.255.0.0
                                # petersen-arne.com
iface eth1 inet static
    address 66.178.134.66
    netmask 255.255.255.248
    gateway 66.178.134.65

                                # DMZ
iface eth1:0 inet static
    address 10.1.0.1
    netmask 255.255.0.0
                                # old internet
iface eth1:1 inet static
    address 208.130.234.33
    netmask 255.255.255.252




On Fri, Feb 22, 2002 at 04:17:45PM -0800, Rob Hudson wrote:
> Anyone have an example of a debian config file
> (/etc/network/interfaces) for the case where you have one main IP, and
> many virtual or aliased IPs?  I've never done this on Linux before,
> only on FreeBSD.
> 
> Thanks,
> Rob
> --
> Rob <rob_at_euglug_dot_net>
> my @euglugCode = qw(v+++ e--- eug+ bsd+++ gnu+ S+++);

----- End forwarded message -----


----- End forwarded message -----

Reply via email to