Assigning A Gateway With DHCPD (v2)

Assigning A Gateway With DHCPD (v2)

Post by Scorch » Sat, 29 Jan 2000 04:00:00



Simple question.  How do I assign my clients a gateway address?  I
have searched ISC's website, all the dhcp man pages, and all the
source files for this information with absolutely no success.  I'm
totally clueless.  I know there's a prototype in dhcpd.conf that looks
like this:

/* route.c */
void add_route_default_gateway PROTO ((struct interface_info *,
                                       struct in_addr));

but I can't even find a file called route.c.

-S

/*** Excerpt from dhcpd.conf man page ***/
Parameter statements either say how to do something (e.g.,
how long a lease to offer), whether to do something (e.g.,
should dhcpd provide addresses  to  unknown  clients),  or
what  parameters to provide to the client (e.g., use gate-
way 220.177.244.7).

 
 
 

Assigning A Gateway With DHCPD (v2)

Post by Steve Cowle » Sat, 29 Jan 2000 04:00:00



Quote:> Simple question.  How do I assign my clients a gateway address?  I
> have searched ISC's website, all the dhcp man pages, and all the
> source files for this information with absolutely no success.  I'm
> totally clueless.  I know there's a prototype in dhcpd.conf that looks
> like this:

> /* route.c */
> void add_route_default_gateway PROTO ((struct interface_info *,
>        struct in_addr));

> but I can't even find a file called route.c.

> -S

> /*** Excerpt from dhcpd.conf man page ***/
> Parameter statements either say how to do something (e.g.,
> how long a lease to offer), whether to do something (e.g.,
> should dhcpd provide addresses  to  unknown  clients),  or
> what  parameters to provide to the client (e.g., use gate-
> way 220.177.244.7).

If I understand your question, your looking for the following parameter. I
found this in "man dhcpd.conf"

            option routers 204.254.239.1;

Steve Cowles

 
 
 

Assigning A Gateway With DHCPD (v2)

Post by Scorch » Sat, 29 Jan 2000 04:00:00


Heh.  Boy do I feel silly.  Spend all this time looking for the word
gateway and they just used router instead.  Well then, sorry to waste
your time.

-S





>> Simple question.  How do I assign my clients a gateway address?  I
>> have searched ISC's website, all the dhcp man pages, and all the
>> source files for this information with absolutely no success.  I'm
>> totally clueless.  I know there's a prototype in dhcpd.conf that looks
>> like this:

>> /* route.c */
>> void add_route_default_gateway PROTO ((struct interface_info *,
>>        struct in_addr));

>> but I can't even find a file called route.c.

>> -S

>> /*** Excerpt from dhcpd.conf man page ***/
>> Parameter statements either say how to do something (e.g.,
>> how long a lease to offer), whether to do something (e.g.,
>> should dhcpd provide addresses  to  unknown  clients),  or
>> what  parameters to provide to the client (e.g., use gate-
>> way 220.177.244.7).

>If I understand your question, your looking for the following parameter. I
>found this in "man dhcpd.conf"

>            option routers 204.254.239.1;

>Steve Cowles