Subject: inet aliases and routed
To: None <>
From: Andrew Brown <>
List: current-users
Date: 08/16/2000 17:28:13
two parts to this...dilemma.

preamble (*everything* was built from anoncvs sources two days ago):

   # uname -a
   NetBSD ebola 1.5E NetBSD 1.5E (RESTON) #20: Tue Aug 15 13:59:24 EDT 2000     andrew@ebola:/usr/src/sys/arch/i386/compile/RESTON i386
   # cat /usr/src/.updated 

(1) what's the correct method for adding aliases via rc.d
configuration?  what i've got now is:

   # cat /etc/ifconfig.ex0 netmask 0xffffff00 media autoselect

but i've just noticed that i can't reach (ie, ping or telnet) the
alias from the machine itself.  rc.d/network says:

        # Note that $ifaliases_xxN works only with certain configurations and
        # considered not recommended.  Use /etc/ifconfig.xxN if possible.

so i figured i was doing "the right thing", but it doesn't seem to
work too goodly.

(2) i can change the route for the alias like this:

   # route change
   change host gateway

but then when i start routed (with -q -d -t -t -t so that i can see
what it's doing), routed sets the route for back to which, of course, doesn't work in the first place.

i can't exactly upgrade...i'm only two days behind.  :)

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."