On 12/01/12 14:12, Gareth Walters (2K Australia) wrote: > G'day all, > I need some help.. > > I am trying to get Squeeze ( 6.0.3 AMD64) to have a few virtual > interfaces so I can setup some SSL sites in apache. > But its not working out side the same subnet (i.e. routing is wrong) > I have tried all combination of settings I can think of in > /etc/network/interfaces > but nothing seems to work. > > I have this working on a few Lenny machines, am I doing something wrong? > > /etc/network/interfaces > auto lo eth0 eth0:0 eth0:1 eth0:2 > iface eth0 inet static > address 10.25.48.140 > netmask 255.255.255.0 > network 10.25.48.0 > gateway 10.25.48.254 > > iface eth0:0 inet static > address 10.25.48.141 > netmask 255.255.255.0 > > iface eth0:1 inet static > address 10.25.48.142 > netmask 255.255.255.0 > > iface eth0:2 inet static > address 10.25.48.145 > netmask 255.255.255.0 > > > > ---Gareth > >
This is on a Squeeze webserver:- # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo eth0:1 eth0:2 iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 #*this* gateway 192.168.0.1 dns-nameservers 127.0.0.1 192.168.0.1 dns-search sunnyside.office # dns-* options are implemented by the resolvconf package, if installed iface eth0:1 inet static address 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255 #*this* network 192.168.0.0 iface eth0:2 inet static address 192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.255 #*this* network 192.168.0.0 Cheers -- Iceweasel/Firefox extensions for finding answers to Debian questions:- https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f0e8d96.30...@gmail.com