Click to See Complete Forum and Search --> : OpenBSD Startup Script for DHCPd


ee99ee2
08-04-2002, 12:18 AM
Right now, my OpenBSD router functions as a NAT and DHCP server for my network. I'm going to install (or attempt to) a VPN server on it tonight.

I need my dhcpd to start automaticly on boot. Currently, I have to type this when it reboots (which is common, b/c the power goes out alot here and this server isn't on a UPS like some of my others): 'dhcpd -q ep1'.

Here's part of the rc.conf file that has to do with the dhcpd: 'dhcpd_flags="-q ep1"'

What am I doing wrong? It just won't start automaticly (it does, but it errors out as if it's ignoreing to use ep1....).

-ee99ee2

elmore
08-05-2002, 01:08 PM
If your conf file is setup appropriately you shouldn;t need to specify the interface, even when you have two interfaces, The daemon should automatically bind to the appropriate network ID. try just setting "-q" in the rc.conf. If that doesn't work for you try just disabling dhcpd in the rc.conf file and then try loading it from the rc.local specifying the interface.

I.E path/to/dhcpd -q ep1

Although not really great form there is no rule that says you can't start dhcpd from rc.local