Subject: inet aliases and routed
To: None <current-users@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
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
20000814
(1) what's the correct method for adding aliases via rc.d
configuration? what i've got now is:
# cat /etc/ifconfig.ex0
204.17.3.77 netmask 0xffffff00 media autoselect
alias 204.17.3.69
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 204.17.3.69 127.0.0.1
change host 204.17.3.69: gateway 127.0.0.1
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 204.17.3.69 back to
204.17.3.69 which, of course, doesn't work in the first place.
i can't exactly upgrade...i'm only two days behind. :)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."