Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 2006 23:11:31 -0700
From:      Serban Giuroiu <glists@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: DHCPd Will Not Listen on the Correct Interface
Message-ID:  <200607222311.31602.glists@comcast.net>
In-Reply-To: <44C2FAB1.8080308@webanoide.org>
References:  <200607220005.54412.glists@comcast.net> <200607221123.11978.glists@comcast.net> <44C2FAB1.8080308@webanoide.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 22 July 2006 21:27, Mikhail Goriachev wrote:
> Instead of PF, you can control serving interfaces from /etc/rc.conf:
>
> dhcpd_ifaces="fxp0 rl0"

Sure, the dhcpd_ifaces variable instructs the rc script to add those 
interfaces as arguments to dhcpd. However, as I mentioned in the first post, 
dhcpd ignores those arguments and listens on all interfaces.

Currently, I have this in /etc/rc.conf:

dhcpd_enable="YES"
dhcpd_ifaces="fxp0 rl0"

The rc script works correctly. ps shows:

/usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user 
dhcpd -group dhcpd fxp0 rl0

However, netstat shows that dhcpd is listening on all interfaces:

# netstat -nat | grep 67
udp4       0      0  *.67                   *.*

For me, that's no big deal. PF will make sure that no DHCP traffic will go 
through on the third interface.

Cheers,
--Serban Giuroiu



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