DHCPd Will Not Listen on the Correct Interface

Mikhail Goriachev mikhailg at webanoide.org
Sat Jul 22 09:05:43 UTC 2006


Serban Giuroiu wrote:
> Hello, everybody.
> 
> I have a fresh install of FreeBSD 6.1-RELEASE on a machine with several NICs, 
> and I need to run different DHCP servers for different subnets on different 
> NICs. I installed isc-dhcp3-server-3.0.4_2 from ports with the default 
> options enabled (of importance: DHCP_PARANOIA and DHCP_JAIL).
> 
> These are the interfaces I need to run DHCPd on:
> 
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
[...]
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500


What happens if you add them into /etc/rc.conf?:

dhcpd_ifaces="fxp0 rl0"


> According to the man page, dhcpd takes as a last argument the interface it 
> should bind to. I run one dhcpd for the interface rl0 like so:
> 
> /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf.rl0.10.0.0.0 -lf /var/db/dhcpd.leases.rl0.10.0.0.0 -pf /var/run/dhcpd.pid.rl0.10.0.0.0 -user 
> dhcpd -group dhcpd rl0


I prefer using: (necessary variables are declared in /etc/rc.conf)

# /usr/local/etc/rc.d/isc-dhcpd.sh start


> After searching through Google, forums, and mailing lists, I have not 
> encountered a post describing a similar situation. Does anybody know what the 
> problem might be?


I hope this helps.

Cheers,
Mikhail.


-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: mikhailg at webanoide.org
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B


More information about the freebsd-questions mailing list