Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 2006 19:05:19 +1000
From:      Mikhail Goriachev <mikhailg@webanoide.org>
To:        gyzmobro@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: DHCPd Will Not Listen on the Correct Interface
Message-ID:  <44C1EA4F.5000800@webanoide.org>
In-Reply-To: <200607220005.54412.glists@comcast.net>
References:  <200607220005.54412.glists@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@webanoide.org
Web: http://www.webanoide.org

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



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