Re: IP aliasing and PCMCIA network cards
On Sun, May 12, 2002 at 09:02:43AM +0100, Niall Mansfield wrote:
> What is the "official" way to set up extra IP addresses on a single
> PCMICA card?
I use this in /etc/network/interfaces:
iface eth0 inet static
address 192.168.124.34
network 192.168.124.0
netmask 255.255.255.0
broadcast 192.168.124.255
up /sbin/ifup --force eth0:1
down /sbin/ifdown --force eth0:1
iface eth0:1 inet static
address 192.168.124.100
network 192.168.124.0
netmask 255.255.255.0
broadcast 192.168.124.255
It may not be perfect - I'm not convinced about the --force above, but
it seemed to be necessary to stop ifup/ifdown getting confused about
which interfaces had been configured in certain situations.
--
Colin Watson [cjwatson@flatline.org.uk]
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: