[pkg-dhcp-devel] Bug#720408: isc-dhcp-server does not work if interface name contains a ":"
thoralf
tschulze at deutsche-kinemathek.de
Wed Aug 21 13:25:41 UTC 2013
Package: isc-dhcp-server
Version: 4.2.2.dfsg.1-5+deb70u6
Severity: important
hi,
isc-dhcp-server (and isc-dhcp-relay as well, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617258 ) does not work with
interfaces whose names contain a colon (":") - it seems like isc-dhcp-server
fails to pick up the ipv4 configuration for these interfaces:
root at router1:/home/thoralf# ip add show if172.2011
90: if172.2011 at if172: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether a0:36:9f:1c:51:d3 brd ff:ff:ff:ff:ff:ff
inet 172.20.11.1/24 brd 172.20.11.255 scope global if172.2011:carp
inet6 fe80::a236:9fff:fe1c:51d3/64 scope link
valid_lft forever preferred_lft forever
root at router1:/home/thoralf# dhcpd -4 -d if172.2011
Internet Systems Consortium DHCP Server 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No subnet declaration for if172.2011 (no IPv4 addresses).
** Ignoring requests on if172.2011. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface if172.2011 is attached. **
Not configured to listen on any interfaces!
root at router1:/home/thoralf#
if such an interface is renamed, everything works as expected (dhcpd.conf
remains unchanged):
root at router1:/home/thoralf# ip link set dev if172.2011 down && ip link set if172.2011 name if172_2011 && ip link set dev if172_2011 up && ip add show if172_2011
90: if172_2011 at if172: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether a0:36:9f:1c:51:d3 brd ff:ff:ff:ff:ff:ff
inet 172.20.11.1/24 brd 172.20.11.255 scope global if172_2011
inet6 fe80::a236:9fff:fe1c:51d3/64 scope link tentative
valid_lft forever preferred_lft forever
root at router1:/home/thoralf# dhcpd -4 -d if172_2011
Internet Systems Consortium DHCP Server 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/if172_2011/a0:36:9f:1c:51:d3/172.20.11.0/24
Sending on LPF/if172_2011/a0:36:9f:1c:51:d3/172.20.11.0/24
Sending on Socket/fallback/fallback-net
DHCPREQUEST for 172.20.11.10 from 00:1e:37:cb:a6:6a via if172_2011
DHCPACK on 172.20.11.10 to 00:1e:37:cb:a6:6a via if172_2011
^C
root at router1:/home/thoralf#
… this is particularly nasty if ucarp¹ is being used - interfaces managed by
ucarp have names like $physical_device:carp by convention. this issue renders
both isc-dhcp-server and isc-dhcp-relay unusable with carp interfaces.
i am willing to try this with isc-dhcp-server=4.2.4-7 from testing. however,
isc-dhcp-relay from testing exhibits similar issues, and i guess they share the
same code.
possibly related: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590641
thank you very much & with kind regards,
thoralf.
¹ - ucarp (installed version: 1.5.2-1+nmu1) provides vrrp-like router
redundancy, see http://packages.debian.org/wheezy/ucarp
-- System Information:
Debian Release: 7.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages isc-dhcp-server depends on:
ii debconf [debconf-2.0] 1.5.49
ii debianutils 4.3.2
ii isc-dhcp-common 4.2.2.dfsg.1-5+deb70u6
ii libc6 2.13-38
ii lsb-base 4.1+Debian8+deb7u1
isc-dhcp-server recommends no packages.
Versions of packages isc-dhcp-server suggests:
pn isc-dhcp-server-ldap <none>
-- Configuration Files:
/etc/dhcp/dhcpd.conf changed [not included]
-- debconf information:
isc-dhcp-server/interfaces: if172.2011 if172.2006
isc-dhcp-server/config_warn:
-------------- next part --------------
option domain-name "xxx.de";
option domain-name-servers x.x.x.x;
default-lease-time 86400;
authoritative;
log-facility local7;
# aaa.xxx.de
subnet 172.20.6.0 netmask 255.255.255.0 {
range 172.20.6.10 172.20.6.250;
option domain-name "aaa.xxx.de";
option routers 172.20.6.1;
option broadcast-address 172.20.6.255;
allow unknown-clients;
}
# bbb.xxx.de
subnet 172.20.11.0 netmask 255.255.255.0 {
range 172.20.11.250 172.20.11.250;
option domain-name "bbb.xxx.de";
option routers 172.20.11.1;
option broadcast-address 172.20.11.255;
deny unknown-clients;
group {
host test-schleppi { hardware ethernet 00:1e:37:cb:a6:6a; fixed-address 172.20.11.10; }
}
}
More information about the pkg-dhcp-devel
mailing list