On Tue, May 07, 2002 at 01:38:22PM -0400, Matthew Daubenspeck wrote:
> I am trying to get two IP addresses on eth0, and I am not having much
> luck. It works properly if I use:
> 
> /sbin/ifconfig eth0:0 192.168.0.5
> 
> and here is my /etc/network/interfaces:

[...]

> iface eth0 inet static
>         address 192.168.0.4
>         netmask 255.255.255.0
>         network 192.168.0.0
>         broadcast 192.168.0.255
>         gateway 192.168.0.2
>       

How about a line 

"auto eth0:0" here?

> iface eth0:0 inet static
>         address 192.168.0.5
>         netmask       255.255.255.0
>         network 192.168.0.0
>       broadcast 192.168.0.255
>       gateway 192.168.0.2
> 
> But the interface will not up with the 2nd IP at reboot. Any
> suggestions? I can always add the ifconfig line to a script I guess...
> 
> 

-- 
Note that I use Debian version 3.0
Linux emac140 2.4.17 #1 sön feb 10 20:21:22 CET 2002 i686 unknown

Hans Ekbrand

Attachment: pgpHeXvUBqxNm.pgp
Description: PGP signature

Reply via email to