Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 21:13:09 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        Alnis Morics <alnis.m@mail.com>, freebsd-questions@freebsd.org
Subject:   Re: dhcpd and interface name
Message-ID:  <20160816205252.C79687@sola.nimnet.asn.au>
In-Reply-To: <mailman.117.1471262402.55176.freebsd-questions@freebsd.org>
References:  <mailman.117.1471262402.55176.freebsd-questions@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In freebsd-questions Digest, Vol 637, Issue 1, Message: 9
On Mon, 15 Aug 2016 07:58:03 -0400 Ernie Luzar <luzar722@gmail.com> wrote:

 > When starting dhcpd at boot time the rc.conf contains   dhcpd_iface"rl0" 
 >   but when restarting using /usr/local/etc/rc.d/isc-dhcpd restart all 
 > interfaces on the host get included.
 > 
 > Is there a dhcpd.conf statement for defining the interface to use?

Joe there's a typo, whether just in your messages or in your rc.conf:

/usr/ports/net/isc-dhcp41-server/pkg-message:
****  This port installs dhcp daemon, but doesn't invoke dhcpd by default. If
      you want to invoke dhcpd at startup, put these lines into /etc/rc.conf.

            dhcpd_enable="YES"                          # dhcpd enabled?
            dhcpd_flags="-q"                            # command option(s)
            dhcpd_conf="%%PREFIX%%/etc/dhcpd.conf"      # configuration file
            dhcpd_ifaces=""                             # ethernet interface(s)
            dhcpd_withumask="022"                       # file creation mask
[..]

As Alnis already pointed out, it's dhcpd_ifaces, plural.

Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160816205252.C79687>