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

simple dhcp questions...



[potato, dhcp.deb, linux 2.2]

I am setting up a dhcp server so I can connect my laptop to my home
system and always get an expected setup while getting a different
setup whenever I plug it in at work.  Sounds simple. :)

I'm having 2 problems detailed below.

I'm trying to get the following:
ip: 192.168.2.4, netmask: 255.255.255.0, bc: 192.168.2.255,
dns: 192.168.2.1, gw: 192.168.2.1, netbios: 192.168.2.1

To that effect I use the following...
==dhcpd.conf==
option domain-name "JJLNet";
option domain-name-servers gw.JJLNet;
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.10 192.168.2.100;
  option broadcast-address 192.168.2.255;
  option routers gw.JJLNet;
}

host noghri {
  hardware ethernet 00:50:8B:9D:AF:A7;
  fixed-address Noghri.JJLNet;
  option routers gw.JJLNet;
  option host-name "Noghri";
  option domain-name "JJLNet";
  option all-subnets-local 1;
  option broadcast-address 192.168.2.255;
  option netbios-name-servers gw.JJLNet;
}
=============

And get back this:

==========
gw:/etc# init.d/dhcp restart
Internet Software Consortium DHCP Server 2.0
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
[...]
/etc/dhcpd.conf line 24: expecting identifier.
  option all-subnets-local 1;
                           ^
Configuration file errors encountered -- exiting
exiting.
==========

Which is odd because of this:

==man dhcp-options==
  option all-subnets-local flag;

     This  option  specifies  whether  or not the client may
     assume that all subnets of the IP network to which  the
     client  is  connected use the same MTU as the subnet of
     that network to which the client is directly connected.
     A  value of 1 indicates that all subnets share the same
     MTU.  A value of 0 means that the client should  assume
     that some subnets of the directly connected network may
     have smaller MTUs.
====================

OK, so I get rid of the offending line, and everything SEEMS ok until
I actually connect.

Everything seems to be cool except that my default IP gateway is not
getting set. Isn't that supposed to be the routers line? (The ip
gateway is still set to the gateway on the network at work)...

Thanks!

Jonathan
-- 
jjlupa@jamdata.net
GPG public key available from http://lupavista.jamdata.net/gpg.asc
------------------------------------------------------------------
Lament 1750: "If I only had a radioactive decay source and a fast 
free-running oscillator..."

Attachment: pgpJrcxfJZfaK.pgp
Description: PGP signature


Reply to: