Bug 1175350
| Summary: | dhcpd generates spurious responses when seeing requests from vlans on plain interface | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jiri Popelka <jpopelka> |
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | jstodola, lmiksik, pbokoc, pjanda, thozza |
| Target Milestone: | rc | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | dhcp-4.2.5-42.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, if a plain interface and a VLAN trunk were configured in the "dhcpd" server at the same time, requests with VLAN tags generated "DHCPOFFER" responses on the plain interface as well as the VLAN.
With this update, "dhcpd" correctly ignores packets with VLAN tags on plain interfaces.
|
Story Points: | --- |
| Clone Of: | 1150587 | Environment: | |
| Last Closed: | 2015-11-19 08:55:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1150587 | ||
| Bug Blocks: | |||
|
Description
Jiri Popelka
2014-12-17 14:50:59 UTC
Retested with dhcp-4.2.5-41.el7, but dhcpd still uses the plain interface:
DHCP server:
[root@localhost ~]# ip -4 addr show dev ens8
3: ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
inet 192.168.10.10/24 scope global ens8
valid_lft forever preferred_lft forever
[root@localhost ~]# ip -4 addr show dev vlan222
4: vlan222@ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
inet 192.168.20.10/24 scope global vlan222
valid_lft forever preferred_lft forever
[root@localhost ~]# cat /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.20 192.168.10.40;
}
[root@localhost ~]# rpm -q dhcp
dhcp-4.2.5-41.el7.x86_64
[root@localhost ~]# dhcpd -d
Internet Systems Consortium DHCP Server 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
No subnet declaration for vlan222 (192.168.20.10).
** Ignoring requests on vlan222. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface vlan222 is attached. **
Listening on LPF/ens8/52:54:00:bc:89:73/192.168.10.0/24
Sending on LPF/ens8/52:54:00:bc:89:73/192.168.10.0/24
No subnet declaration for ens3 (192.168.122.129).
** Ignoring requests on ens3. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface ens3 is attached. **
Sending on Socket/fallback/fallback-net
DHCPDISCOVER from 52:54:00:ad:1d:08 via ens8
DHCPOFFER on 192.168.10.20 to 52:54:00:ad:1d:08 via ens8
DHCPDISCOVER from 52:54:00:ad:1d:08 via ens8
DHCPOFFER on 192.168.10.20 to 52:54:00:ad:1d:08 via ens8
^C
[root@localhost ~]#
DHCP client:
[root@localhost ~]# dhclient -d -v vlan222
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/vlan222/52:54:00:ad:1d:08
Sending on LPF/vlan222/52:54:00:ad:1d:08
Sending on Socket/fallback
DHCPDISCOVER on vlan222 to 255.255.255.255 port 67 interval 6 (xid=0x588b0efd)
DHCPDISCOVER on vlan222 to 255.255.255.255 port 67 interval 13 (xid=0x588b0efd)
^C
[root@localhost ~]#
Also tested with DHCP server running on RHEL-6.7 (dhcp-4.1.1-49.P1.el6) and this issue is not present there, so this should not be caused by misconfiguration.
Moving back to ASSIGNED.
Verified with dhcp-4.2.5-42.el7, using the environment from comment 4. DHCP requests from VLAN were ignored by DHCP server listening on the plain network interface. Moving to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-2251.html |