Subject: Is this possible (DHCP)?
To: None <netbsd-help@netbsd.org>
From: Robert Schmid <aleric-netbsd@raptor.net>
List: netbsd-help
Date: 01/28/2002 11:05:52
I have two subnets in my dhcp server one is the internal 192.168.x.x net
and the other is small block of real addresses.  So the dhcpd.conf is set
up like this;

# Set parameters for the 299.194.190.40/29 subnet.
# Obviously fake ip numbers
subnet 299.194.190.40 netmask 255.255.255.248 {
        range 299.194.190.43 299.194.190.46;
        option routers 299.194.190.41;
}
# Set parameters for the 192.168.1.0/24 subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.2 192.168.1.254;
        option routers 192.168.1.1;
}

The dhcpd server runs on ep0 which is 192.168.1.1 and mc0 is 299.194.190.42
and connects to the rest of the world.

I want my inside machines to get a "real" ip first if its available and
only get a 192 number if the real addresses are all in use.  However, when
I do this, all I get is 192.x.x.x numbers.  Is it even possible to do what
I'm trying to do this way or would i have move both subnets to one
interface and use an alias?

Thanks