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 1281617 - Bonding vlan device gets a different MAC address to the bond device and slave.
Summary: Bonding vlan device gets a different MAC address to the bond device and slave.
Keywords:
Status: CLOSED DUPLICATE of bug 1264322
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.1
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Beniamino Galvani
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 23:39 UTC by Jonathan Maxwell
Modified: 2019-09-12 09:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-09 08:22:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jonathan Maxwell 2015-11-12 23:39:42 UTC
Description of problem:

The customer is configuring LACP bonds. But this happens with active/backup as well. They noticed that the bonding vlan devices MAC address changes after adding an ip address or rebooting to some random MAC address. This causes the kernel to arp and apparently affected their switches which resulted in poor performance. Although we do not have the details of that. They worked around this by subsequently adding and MAC address as follows. 

nmcli connection modify "bond0.694" "802-3-ethernet.cloned-mac-address" `/sbin/ifconfig bond0 | grep ether | awk '{print $2}'`  
nmcli connection modify "bond0.692" "802-3-ethernet.cloned-mac-address" `/sbin/ifconfig bond0 | grep ether | awk '{print $2}'` 

Version-Release number of selected component (if applicable):

RHEL7.1/bonding/vlan/NetworkManager

3.10.0-229.14.1.el7.x86_64

How reproducible:

I think I can reproduce it as follows. 

Steps to Reproduce:

1. On a RHEL7.1 system:

# nmcli connection add type bond con-name bond0 ifname bond0 mode active-backup
# nmcli connection add type bond-slave con-name eno4 ifname eno4 master bond0

2. Now add the vlan device:

# nmcli connection add type vlan con-name bond0.692 ifname bond0.692 dev bond0 id 692

# ip addr will show that the MAC address is the same as bond0/eno4 for bond0.692, all good so far.

3. Reboot or reload the bonding driver. 

nmcli net off ; modprobe -r bonding ; nmcli net on

and "ip addr" will show that a random MAC address has been assigned to bond0.692. This is where the problems start.

Actual results:

Vlan bond0.692 gets a random MAC address. This affects the switches when it arps.

Expected results:

Get the same MAC address for bond0.692 as the bond0/eno4 interface as per when it was initially configured.

At this stage I am not sure whether this is due to NetworkManager or the bonding driver. For the meanwhile adding as NetworkManager.

Comment 2 Beniamino Galvani 2015-11-13 08:07:23 UTC
Hi Jonathan,

this looks similar to bug 1264322, which is now solved in RHEL 7.2.

The problem is that the VLAN was inheriting the initial random MAC assigned to the bond when it had no slaves. Now NM updates the VLAN MAC to match the one on the bond.

Can you please test if the RHEL 7.2 package fixes the issue?

Comment 4 Beniamino Galvani 2015-12-09 08:22:07 UTC
Closing as this seems to be a duplicate of bug 1264322, please reopen if necessary.

*** This bug has been marked as a duplicate of bug 1264322 ***

Comment 5 Jonathan Maxwell 2015-12-21 21:38:28 UTC
Sorry been on PTO. The customer does not wish to pursue this. So I am fine with duping this.


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