Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 894865 Details for
Bug 1096954
Bonded interface uses the hardware address of the master interface for the slave configuration files
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Copy of proposed patch / pull request on GitHub
0002-bonding-use-hwaddr-of-the-slave-rather-than-the-mast.patch (text/plain), 2.12 KB, created by
Alex Harpin
on 2014-05-12 19:02:04 UTC
(
hide
)
Description:
Copy of proposed patch / pull request on GitHub
Filename:
MIME Type:
Creator:
Alex Harpin
Created:
2014-05-12 19:02:04 UTC
Size:
2.12 KB
patch
obsolete
>From f7a87b486547ca5792be2f1ee78eacb9672140a9 Mon Sep 17 00:00:00 2001 >From: Alex Harpin <development@landsofshadow.co.uk> >Date: Tue, 6 May 2014 23:41:17 +0100 >Subject: [PATCH 2/5] bonding: use hwaddr of the slave rather than the master > >When a bonded interface is brought up, any slaves included in the bond >have their hardware address set to that of the bond master. Although >this allows an interface to be brought up on start up, when the >configuration file is imported into the booted system it prevents >the bonded interface being successfully restarted. > >The fix involves obtaining the hardware address of the slaves before >they are added to the bond and then using this value in the >configuration file. >--- > modules.d/40network/ifup.sh | 1 + > modules.d/45ifcfg/write-ifcfg.sh | 6 +++++- > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh >index ede0188..fd84e4c 100755 >--- a/modules.d/40network/ifup.sh >+++ b/modules.d/40network/ifup.sh >@@ -188,6 +188,7 @@ if [ -e /tmp/bond.${netif}.info ]; then > > for slave in $bondslaves ; do > ip link set $slave down >+ cat /sys/class/net/$slave/address > /tmp/net.${netif}.${slave}.hwaddr > echo "+$slave" > /sys/class/net/$bondname/bonding/slaves > linkup $slave > done >diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh >index 5dc351d..37e09e5 100755 >--- a/modules.d/45ifcfg/write-ifcfg.sh >+++ b/modules.d/45ifcfg/write-ifcfg.sh >@@ -204,7 +204,11 @@ for netup in /tmp/net.*.did-setup ; do > echo "TYPE=Ethernet" > echo "ONBOOT=yes" > echo "NETBOOT=yes" >- echo "HWADDR=\"$(cat /sys/class/net/$slave/address)\"" >+ if [ -e /tmp/net.${netif}.${slave}.hwaddr ]; then >+ echo "HWADDR=\"$(cat /tmp/net.${netif}.${slave}.hwaddr)\"" >+ else >+ echo "HWADDR=\"$(cat /sys/class/net/$slave/address)\"" >+ fi > echo "SLAVE=yes" > echo "MASTER=\"$netif\"" > echo "NAME=\"$slave\"" >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1096954
: 894865