[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhcp and default gateway



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?

I use dhclient.  My /etc/dhclient.cong contains only:

send host-name "GIVENNAME";
supersede domain-name "lan.domainaddress.dom";
prepend domain-name-servers 127.0.0.1;

Gateway seemes to be provided through DHCP.

But you may add it by (I think, but never tried):

option routers 192.33.137.250;


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 :) 
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
+  Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D  +
+  My debian quick-reference, http://qref.sourceforge.net/quick/      +



Reply to: