Bug 449946 - dhcpd ignoring secondary IPs
Summary: dhcpd ignoring secondary IPs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: rawhide
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 803540
TreeView+ depends on / blocked
 
Reported: 2008-06-04 12:46 UTC by Christian Celler
Modified: 2012-05-23 09:26 UTC (History)
3 users (show)

Fixed In Version: dhcp-4.2.3-24.P2.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-23 09:26:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dhcpd.conf (1.14 KB, text/plain)
2008-06-04 12:46 UTC, Christian Celler
no flags Details

Description Christian Celler 2008-06-04 12:46:04 UTC
Description of problem:
dhcpd does not start if "subnet"-declaration does not match the primary
ip-address of an interface.

Version-Release number of selected component (if applicable):
dhcp-4.0.0-14.fc9.i386

How reproducible:
Setup a machine with a secondary IP on an interface. Use this IP as "subnet" in
dhcpd.conf.


Steps to Reproduce:
1. install dhcp
2. configure a secondary ip for an interface
3. use this IPs network as subnet-declaration
4. start dhcpd
  
Actual results:
Server does not start.

Expected results:
Server should start.

Additional info:
[root@powell ~]# ip addr list dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
    link/ether 00:e0:81:76:ae:4d brd ff:ff:ff:ff:ff:ff
    inet yy.yyy.16.252/24 brd yy.yyy.16.255 scope global eth0
    inet 192.168.204.2/24 brd 192.168.204.255 scope global eth0
[root@powell ~]# ip addr list dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
    link/ether 00:e0:81:76:ae:4c brd ff:ff:ff:ff:ff:ff
    inet xxx.xx.46.252/23 brd xxx.xx.47.255 scope global eth1
    inet 192.168.206.2/23 brd 192.168.207.255 scope global eth1

Comment 1 Christian Celler 2008-06-04 12:46:04 UTC
Created attachment 308337 [details]
dhcpd.conf

Comment 2 David Cantrell 2008-09-29 21:46:36 UTC
This is definitely a valid problem and an interesting one to solve.  The ISC dhcp software uses ioctl() calls to gather network interface information.  Those calls do not give the caller anything but the first or primary IPv4 address.

To see all addresses per interface on Linux, dhcpd will have to be patched to use libnl to get a list of all addresses via Netlink.  I'm not sure if that would be accepted upstream, but we can try.

Comment 3 Christian Celler 2008-09-30 11:48:55 UTC
The work-around would be to use shared-network statements with an empty subnet-definition for the "primary" address and then to configure the "real" subnet as usual in this shared-network.

Comment 4 Bug Zapper 2009-06-10 01:23:59 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Bug Zapper 2009-11-16 08:07:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2010-11-04 11:53:37 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Jiri Popelka 2012-03-15 11:18:35 UTC
Previous URL is wrong, correct one is:
https://lists.isc.org/pipermail/dhcp-hackers/2011-June/001920.html

Comment 9 Jiri Popelka 2012-03-21 16:23:55 UTC
We could possibly use getifaddrs() instead of the Netlink code in patch mentioned in previous comment. That would simplify the discovery code *a lot*.

Comment 10 Fedora Update System 2012-03-21 19:01:16 UTC
dhcp-4.2.3-22.P2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/dhcp-4.2.3-22.P2.fc17

Comment 11 Fedora Update System 2012-03-23 00:43:53 UTC
Package dhcp-4.2.3-22.P2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dhcp-4.2.3-22.P2.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4532/dhcp-4.2.3-22.P2.fc17
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-03-23 18:18:37 UTC
dhcp-4.2.3-23.P2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/dhcp-4.2.3-23.P2.fc17

Comment 13 Fedora Update System 2012-04-12 02:35:12 UTC
dhcp-4.2.3-24.P2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 joshua 2012-05-22 19:09:20 UTC
Can we get this fixed and pushed to Fedora 15 and 16 as well please?  This is a bug in those releases as well

Comment 15 Jiri Popelka 2012-05-23 09:26:52 UTC
No. The patch is not well tested and I won't risk breaking someone's dhclient/dhcpd in F16 or even F15.


Note You need to log in before you can comment on or make changes to this bug.