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

Re: problems setting up DHCPD

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


-----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 netmask {
                option routers; # the IP adress of 
OpenBSD on this VLAN
                option subnet-mask;
                option broadcast-adress;

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

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.
Configuration file errors encountered -- 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 : for windows dhcp clients to work correctly.
If I type : route add -host dev vlan0//, it doesn't work

writing to routing socket: Invalid argument
add host Invalid argument
# route add -host 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

Visit your host, monkey.org