[plug] default gateway on dhcp client
Alan Graham
alan.graham at infonetsystems.com.au
Mon Mar 4 13:08:52 WST 2002
This is the relevant portion of my dhcpd.conf. As you can see, I normally
use linuxconf, but that doesn't matter. The routers entry is the same as
yours, but this works fine (ie, adds the gateway) on both linux and windoze
clients. Mybe something esoteric to do with the netmask? Are the clients on
the same subnet as the gateway?
Alan
/root# more /etc/dhcpd.conf
### Managed by Linuxconf, you may edit by hand.
### Comments may not be fully preserved by linuxconf.
server-identifier homer;
default-lease-time 259200;
max-lease-time 432000;
option broadcast-address 192.168.1.255;
option domain-name-servers 208.179.42.162,
203.0.178.191,
204.107.129.2;
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
subnet 192.168.1.0 netmask 255.255.255.0{
range 192.168.1.20 192.168.1.30;
}
On Mon, 4 Mar 2002 11:55, John Breen wrote:
> no, yes, and no.
>
> i believe dhcpd will generally refuse to run if you leave off the
> semicolons?
>
> On Mon, 2002-03-04 at 11:48, Michael Hunt wrote:
> > I don't know if you have left off the semi colon in your post or if you
> > don't have one in you config file. Try adding one to the end and see if
> > that helps.
> >
> > Otherwise everything else says your doing it correctly and I have a
> > similar (Linux gateway-dhcp server/Linux workstation) that this works
> > for,
> >
> > Michael Hunt
> >
> > > -----Original Message-----
> > > From: John [mailto:wombat at borg.apana.org.au]On Behalf Of John Breen
> > > Sent: Monday, 4 March 2002 10:25 AM
> > > To: plug at plug.linux.org.au
> > > Subject: [plug] default gateway on dhcp client
> > >
> > >
> > > i have a dhcp server and a dhcp client on my network. the client gets
> > > its address and all fine, but i find i have to manually add a default
> > > gateway after it's done that. anyone know how to make the dhcp client
> > > add a default gateway?
> > >
> > > the dhcp server config has somewhere in it
> > >
> > > option routers 192.168.0.1
> > >
> > > and the client adds this route ok. what it doesn't do is add a
> > > gateway, so i have to enter
> > >
> > > route add default gw 192.168.0.1
> > >
> > > after startup. this is annoying, but atm the only thing i can see to
> > > try is to put the command in the /etc/init.d/networking script. (i'm
> > > running debian, so that's where it is)
> > >
> > > anyone got any other ideas?
> > >
> > > cheers,
> > >
> > > john breen
More information about the plug
mailing list