<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/05/2011 08:40 PM, Steve Clark wrote:
<blockquote cite="mid:4E656C1B.4080509@netwolves.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="sans-serif">Hi,<br>
<br>
I am using dhcp-4.1.1-11.P1 on EL6. I am running dhcpd without
specifying an interface<br>
expecting dhcpd to match the interface based on the subnet
defined in the dhcpd.conf file.<br>
This works as expected unless I have multiple addresses on the
interface and the<br>
subnet that matches the dhcpd.conf file is not the first address
listed on the interface.<br>
<br>
Is this a known problem? Is there a work around?<br>
<br>
Thanks,<br>
</font><br>
</blockquote>
Here is an example:<br>
/etc/dhcp/dhcpd.conf <br>
#dhcpd.conf<br>
ddns-update-style interim;<br>
shared-network DHCP{<br>
subnet 10.0.1.0 netmask 255.255.255.0 {<br>
range 10.0.1.1 10.0.1.253;<br>
option domain-name-servers 10.0.1.254;<br>
option routers 10.0.1.254;<br>
option subnet-mask 255.255.255.0;<br>
option broadcast-address 10.0.1.255;<br>
default-lease-time 86400;<br>
max-lease-time 86400;<br>
deny bootp;<br>
}}<br>
<br>
ip a s eth2<br>
2: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq
state DOWN qlen 1000<br>
link/ether 00:02:b6:36:d1:39 brd ff:ff:ff:ff:ff:ff<br>
inet 172.16.3.1/24 brd 172.16.3.255 scope global eth2<br>
inet 10.0.1.254/24 scope global eth2<br>
<br>
/usr/sbin/dhcpd -4 eth2<br>
Internet Systems Consortium DHCP Server 4.1.1-P1<br>
Copyright 2004-2010 Internet Systems Consortium.<br>
All rights reserved.<br>
For info, please visit <a class="moz-txt-link-freetext" href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn
were not specified in the config file<br>
Wrote 0 leases to leases file.<br>
<br>
No subnet declaration for eth2 (172.16.3.1).<br>
** Ignoring requests on eth2. If this is not what<br>
you want, please write a subnet declaration<br>
in your dhcpd.conf file for the network segment<br>
to which interface eth2 is attached. **<br>
<br>
<br>
Not configured to listen on any interfaces!<br>
<br>
exiting.<br>
<br>
<b>now switch the address order so the 10.0.1.254 is first:</b><br>
ip a s eth2<br>
2: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq
state DOWN qlen 1000<br>
link/ether 00:02:b6:36:d1:39 brd ff:ff:ff:ff:ff:ff<br>
inet 10.0.1.254/24 scope global eth2<br>
inet 172.16.3.1/24 scope global eth2<br>
<br>
/usr/sbin/dhcpd -4 eth2<br>
Internet Systems Consortium DHCP Server 4.1.1-P1<br>
Copyright 2004-2010 Internet Systems Consortium.<br>
All rights reserved.<br>
For info, please visit <a class="moz-txt-link-freetext" href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn
were not specified in the config file<br>
Wrote 0 leases to leases file.<br>
Listening on LPF/eth2/00:02:b6:36:d1:39/DHCP<br>
Sending on LPF/eth2/00:02:b6:36:d1:39/DHCP<br>
Sending on Socket/fallback/fallback-net<br>
<br>
<b>Running OK.</b><br>
<br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Sr. Software Engineer III<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>