Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: jstodola, lmiksik, pbokoc, pjanda, thozza
Target Milestone: rcKeywords: 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
+++ This bug was initially created as a clone of Bug #1150587 +++

Description of problem:

If dhcpd is listening on a plain interface "eth0" it also sees the traffic from VLANs "eth0.7" but generates responses without VLAN tags.

How reproducible:

Always.

Steps to Reproduce:
1. dhcp server with ethX and ethX.Y
2. dhcpd -d ethX
3. from a client generate dhcp request on vlan Y

Actual results:

dhcpd generates DHCPOFFER on non-vlan

Expected results:

dhcpd ignores the request.

Additional info:

dhcpd needs to ignore the tagged requests on plain interfaces.

If it is listening on all interfaces (including ethX.Y) it will see the tagged version on eth0 and also as an untagged version on ethX.Y, thus generating duplicates (even if the response was correctly tagged).

--- Additional comment from Jiri Popelka on 2014-12-17 13:46:44 CET ---

http://pkgs.devel.redhat.com/cgit/rpms/dhcp/commit/?h=rhel-6.7&id=d293257f462d397e5dfa37e8bffc56bbc3ca4b22

Comment 4 Jan Stodola 2015-10-09 18:20:12 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.

Comment 6 Jan Stodola 2015-10-15 16:40:53 UTC
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.

Comment 8 errata-xmlrpc 2015-11-19 08:55:52 UTC
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