Damon Getsman wrote:
> I'm trying to set up a dhcp3-server package right now on a ubuntu
> server in a setting right now where the server uses its default route
> to access a WAN and internet, and then only serves dhcp to its own LAN
> over the non-default interface. Basically the reason that I needed to
> do it this way is because there is already a dhcp server on the main
> WAN, but I need to set up a PXE booting service on a small LAN apart
> from that for testing purposes.
>
> Is there any specific manner in /etc/dhcp3/dhcpd.conf that I can
> specify to only provide the dhcp service on the non-default
> interface? I haven't been able to find anything googling or in the
> dhcp3 docs yet.
>
> Thanks in advance
>
> -Damon Getsman
You need a "subnet" line somewhere, like:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.99
option routers 192.168.1.1
option broadcast-address 192.168.1.255
}
Your kernel routing table will have to know how to reach different IP
addresses.
Robert
|