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

Re: problems setting up DHCPD



Try replacing 'adress' with 'address' :-)

Greetz,
Ivo


-----Original Message-----
From: Valery Roche [mailto:Valery_(_dot_)_Roche_(_at_)_univ-poitiers_(_dot_)_fr] 
Sent: dinsdag 7 januari 2003 14:10
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: problems setting up DHCPD

Hi list,

I have OpenBSD installed on a server. I use it to NAT some windows 
client on a VLAN (no problem with the configuration of VLANs).

Here is a sample of my dhcpd.conf :
    subnet 192.168.41.0 netmask 255.255.255.0 {
                option routers 192.168.41.253; # the IP adress of 
OpenBSD on this VLAN
                option subnet-mask 255.255.255.0;
                option broadcast-adress 192.168.41.255;
                range 192.168.41.20 192.168.41.46;
        }

        host test {
                hardware ethernet 00:30:f1:1a:21:f6;
                fixed-adress "192.168.41.24";
        }


When I start DHCPD by typing : dhcpd vlan0, I have the following error 
message :
/etc/dhcpd.conf line 14: no option named broadcast-adress
                option broadcast-adress 192.
         ^
/etc/dhcpd.conf line 20: expecting a parameter or declaration.
                fixed-adress
  ^
Configuration file errors encountered -- exiting
exiting.


If I comment the "bad" lines, it works but none of the windows boxes 
take their IP from the server. I read somewhere it is needed to add this

route : 255.255.255.255 for windows dhcp clients to work correctly.
If I type : route add -host 255.255.255.255 dev vlan0//, it doesn't work
:

writing to routing socket: Invalid argument
add host 255.255.255.255: Invalid argument
# route add -host 255.255.255.255 dev vlan0
route: dev: bad value

What do I need to do for dhcpd to work correctly ?
Why is the syntax of dhcpd.conf wrong ?

Thanks in advance
Valery Roche

--
University of Poitiers
FRANCE



Visit your host, monkey.org