Subject: Re: ifconfig aliases
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 09/05/2000 17:06:35
On Tue, Sep 05, 2000 at 12:57:30PM +0100, Patrick Welche wrote:
> Is it possible in theory to have a computer with a single interface having
> an alias on another network? Everytime I have tried this in the past I have
> used 2 interfaces, but I just tried 3 computers:
>
> A: 192.168.0.62
> B: 192.168.1.2
> C: 192.168.0.1, alias 192.168.1.1
>
> all netmasks are 0xffffff00.
>
> A can ping C
> B can ping C
> C can't even ping 127.0.0.1
>
> Can this work with said netmask, or have I messed up the routes?
This should work. I have a machine with 192.168.2.1/24, alias
192.168.1.52/24.
/etc/ifconfig.de1 has:
192.168.1.52 netmask 0xffffff00 media 100baseTX
/etc/ifaliases has:
192.168.2.1 de1 255.255.255.0
And all works fine.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--