Subject: Re: ifconfig alias and route?
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 08/30/2001 14:05:06
On Thu, 30 Aug 2001, Jukka Marin wrote:
> Under NetBSD 1.3 and 1.4, is it possible set up a route to multiple IP
> addresses of a local Ethernet interface? Ie.
>
> ifconfig ne0 10.0.0.1 netmask 0xffffff00
> ifconfig ne0 alias 10.0.0.2 netmask 0xffffff00
>
> Now, you can locally ping 10.0.0.1, but not 10.0.0.2. If you try to
>
> route add 10.0.0.2 -interface lo0
Try
route add 10.0.0.2 localhost -iface
It also works to set the netmask on the alias to 255.255.255.255.
Frederick