Listening IP
Glenn Satchell
Glenn.Satchell at uniq.com.au
Wed Jul 2 13:40:42 UTC 2008
>Subject: Listening IP
>Date: Wed, 2 Jul 2008 14:26:00 +0100
>From: "Dean, Barry" <B.Dean at liverpool.ac.uk>
>To: <dhcp-users at isc.org>
>
>Hi, I have four DHCP servers, ISC DHCP 4.0.0 running on Solaris 10 x86 on Sun
X4200 hardware.
>
>These machines have 4 network cards. The one I am using has id e1000g3.
>
>On this card there are two IPs, an example:
>
>e1000g3: 192.168.31.100 primary-name
>e1000g3:1 192.168.31.10 dhcp
>
>My config file says to listen on the 31 subnet thus:
>
>subnet 192.168.31.0 netmask 255.255.255.0 {
> option subnet-mask 255.255.255.0 ;
> option routers 192.168.31.1 ;
> option domain-name-servers 192.168.120.100, 192.168.120.101 ;
>}
>
>Problem is clients report that the DHCP server that gave them an IP was
192.168.31.100, the primary-name.
>
>I would like them to think it was the 192.168.31.10 IP, the dhcp name instead.
>
>With other daemons, like DNS, RADIUS, I am used to binding the service to an
IP, with DHCP it looks like you bind to an entire subnet, can this be changed? I
would only like the servers to listen on the "dhcp" interface and only reply
from it.
>
>Thanks.
dhcp listens at the interface layer, rather than an IP address. This is
because some of the packets it's looking for are broadcast to the
all-ones mac address (ff:ff:ff:ff:ff:ff) before an IP address is even
assigned.
You can use the server-identifier command to set the source address
used for replies, otherwise the default is to use the first IP address
assigned to the interface. See dhcpd.conf man page for more information
on this statement.
regards,
-glenn
More information about the dhcp-users
mailing list