Re: dhcp and default gateway
On Tuesday 29 January 2002 22:40, Osamu Aoki wrote:
> On Tue, Jan 29, 2002 at 07:38:38PM -0700, Jason Majors wrote:
> > I have my network set up to use dhcp. The clients can
> > connect, ping, ssh, etc. to the server, but they can't
> > connect beyond my gateway. The only part of my static
> > network setup that isn't present in my dynamic setup is the
> > default gateway.
> > How can the dhcp server tell the client which default
> > gateway to use? Or is this something I need to somehow put
> > in my client configuration?
[...]
> Gateway seemes to be provided through DHCP.
>
> But you may add it by (I think, but never tried):
>
> option routers 192.33.137.250;
This is how I do it. Add the above line in /etc/dhcpd.conf and
you should be set. You may also consider adding the
following line if your running dns as well:
option domain-name-servers 192.168.1.2;
which is also covered in the man page below.
> According to "man dhcp-optons"
>
> option routers ip-address [, ip-address... ];
>
> The routers option specifies a list of IP addresses for
> routers on the client's subnet. Routers should be
> listed in order of preference.
>
> Cherrs :)
Reply to: