Subject: Re: ifconfig alias in rc.conf
To: None <>
From: Juergen Hannken-Illjes <>
List: netbsd-users
Date: 03/10/2005 22:48:00
On Thu, Mar 10, 2005 at 01:11:02PM -0800, Bryan Buecking wrote:
> I recently ran into a problem where I was trying to define an IP and 
> aliases to an interface through rc.conf.
> ifconfig_fxp0 "inet a.b.c.d netmask 0xffffff00"
> ifconfig_fxp0 "inet e.f.g.h netmask 0xffffffff alias"
> It seemed that each definition over wrote the last.

Its only variable assignments. Last one wins.

> I've ended up 
> defining the interfaces IP's through ifconfig.if, but was wondering if 
> it is possible to do so through rc.conf?

ifconfig_fxp0="inet a.b.c.d netmask 0xffffff00"
ifaliases_fxp0="e.f.g.h 0xffffffff"

rc.conf (5) is your friend,
Juergen Hannken-Illjes - - TU Braunschweig (Germany)