Your message dated Tue, 27 May 2014 21:34:28 +0000 with message-id <[email protected]> and subject line Bug#725786: fixed in bridge-utils 1.5-9 has caused the Debian Bug report #725786, regarding bridge-utils: Improving the bridge_hw option in /etc/network/interfaces to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 725786: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725786 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: bridge-utils Version: 1.5-6 Severity: wishlist Tags: patch Dear Maintainer, I came into the situation where I wanted to assign a specific hw address to a bridge device. However, using the bridge_hw option didn't work for me as I wasn't adding any interfaces to the bridge (the bridge is used for attaching virtualbox VMs which somehow magically work without `brctl show` displaying any interfaces). Changing the mac address with `ip link set address … dev br0` after the bridge was created caused it to change its state from UNKNOWN to DOWN which make it unfunctional for virtualbox. Manually changing the state to UP didn't work either. While reading the ip-link.8 man page I noticed that this can also be used to create bridge devices with the option of specifying a mac address. After some testing, I ask you to consider using this way to create bridge interfaces in conjunction with the bridge_hw option, as the hw address stays the same even after interfaces are added and removed. See the following sample output of some commands (I've tried it with the mac addresses for br0 being both larger and smaller compared to eth0). # ip link add br0 address fc:cc:cc:cc:cc:cc type bridge # ip a s dev br0 27: br0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default link/ether cc:cc:cc:cc:cc:cc brd ff:ff:ff:ff:ff:ff # brctl addif br0 eth0 # ip a s dev eth0 3: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master br0 state DOWN group default qlen 1000 link/ether aa:aa:aa:aa:aa:aa brd ff:ff:ff:ff:ff:ff # ip a s dev br0 27: br0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default link/ether cc:cc:cc:cc:cc:cc brd ff:ff:ff:ff:ff:ff # brctl delif br0 eth0 # ip a s dev eth0 3: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether aa:aa:aa:aa:aa:aa brd ff:ff:ff:ff:ff:ff # ip a s dev br0 27: br0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default link/ether cc:cc:cc:cc:cc:cc brd ff:ff:ff:ff:ff:ff # brctl delbr br0 As far as I can tell using `ip link add …` without the address yields the same behavior as using brctl addbr, so I wrote a (trivial) patch to /lib/bridge-utils/ifupdown.sh implementing the change suggested above. Of course the man page would also need an update if the change was accepted. Regards Lukas Schwaighofer -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.10-3-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 bridge-utils depends on: ii libc6 2.17-93 bridge-utils recommends no packages. Versions of packages bridge-utils suggests: ii ifupdown 0.7.44 ii net-tools 1.60-25 -- no debconf information--- ifupdown.sh.orig 2013-10-08 10:52:10.436394216 +0200 +++ ifupdown.sh.new 2013-10-08 10:58:57.283961964 +0200 @@ -27,7 +27,11 @@ # Previous work (create the interface) if [ "$MODE" = "start" ] && [ ! -d /sys/class/net/$IFACE ]; then - brctl addbr $IFACE || exit 1 + BROPTS="" + if [ "$IF_BRIDGE_HW" ] ; then + BROPTS="$BROPTS address $IF_BRIDGE_HW" + fi + ip link add $IFACE $BROPTS type bridge || exit 1 # Wait for the ports to become available if [ "$IF_BRIDGE_WAITPORT" ] then @@ -66,10 +70,6 @@ if [ -x /etc/network/if-pre-up.d/vlan ]; then env IFACE=$port /etc/network/if-pre-up.d/vlan fi - if [ "$IF_BRIDGE_HW" ] - then - ifconfig $port down; ifconfig $port hw ether $IF_BRIDGE_HW - fi if [ -f /proc/sys/net/ipv6/conf/$port/disable_ipv6 ] then echo 1 > /proc/sys/net/ipv6/conf/$port/disable_ipv6
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---Source: bridge-utils Source-Version: 1.5-9 We believe that the bug you reported is fixed in the latest version of bridge-utils, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Santiago Garcia Mantinan <[email protected]> (supplier of updated bridge-utils package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Tue, 20 May 2014 23:01:06 +0200 Source: bridge-utils Binary: bridge-utils Architecture: source amd64 Version: 1.5-9 Distribution: unstable Urgency: low Maintainer: Santiago Garcia Mantinan <[email protected]> Changed-By: Santiago Garcia Mantinan <[email protected]> Description: bridge-utils - Utilities for configuring the Linux Ethernet bridge Closes: 725786 Changes: bridge-utils (1.5-9) unstable; urgency=low . * Fix kernel version check and adjust it to match kernel behaviours. Closes: #725786. Checksums-Sha1: 916d6bcb44d56d4a7f5229277dddfb2583ad6421 1064 bridge-utils_1.5-9.dsc e4443de1c396c2c3920051a1fa09c4dd3581135c 15956 bridge-utils_1.5-9.diff.gz 381207964fa4d0cfe4bc4443a1fb1bc4d39b2b12 32806 bridge-utils_1.5-9_amd64.deb Checksums-Sha256: a3bdb9f4e82fc26bc6d0ecb8ec64a8a9e565ddf3a4b6da882b9aa0df71abafb1 1064 bridge-utils_1.5-9.dsc 5f5ddbafee1195e0e19c27aa7f3eb5e91d34aad9c115dee681fc00cfc21a1682 15956 bridge-utils_1.5-9.diff.gz 89f438814767fa6627a30e9b741ab1888843d7a67639e3714baea78c8a67accd 32806 bridge-utils_1.5-9_amd64.deb Files: 30ce38e5d4a5d81ab4c66ddcbd08ddc1 32806 net optional bridge-utils_1.5-9_amd64.deb f5a363369829dc32fe640e7c6bc3b778 1064 net optional bridge-utils_1.5-9.dsc 21c7785c0ba71dd0d77544574ea5e941 15956 net optional bridge-utils_1.5-9.diff.gz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlOFAasACgkQcv3CBfajKo7TpACfVYyDEC25u5EiqRRA8+hBpolM J/sAnRPqsI21I9IDWX/rmsUDJXvIdqlr =9OQa -----END PGP SIGNATURE-----
--- End Message ---

