Subject: Re: How do you assign host aliases when using dhclient?
To: Beaker <beaker1119@yahoo.com>
From: Laine Stump <lainestump@rcn.com>
List: netbsd-help
Date: 02/11/2002 22:01:02
"Beaker" <beaker1119@yahoo.com> writes:

> I recently installed an SMC Barricade router (SMC7004ABR) on my home network
> which by default is set up as a DHCP server. I've sucessfully setup my
> NetBSD box (i386/1.5.2/Generic) with dhclient but I don't see a way to
> assign host aliases. Is there some way of doing this in /etc/hosts (or some
> other place)?

Add something like this to /etc/dhclient.conf (this adds an alias of
1.2.3.4, netmask 255.255.255.0, on the interface tlp1. tlp1 will get
its primary address from dhcp):

alias {
  interface "tlp1";
  fixed-address 1.2.3.4;
  option subnet-mask 255.255.255.0;
}