Bug 337651 - network-bridge do not work with vlan interfaces
Summary: network-bridge do not work with vlan interfaces
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen   
(Show other bugs)
Version: 5.0
Hardware: All Linux
Target Milestone: ---
: ---
Assignee: Daniel Berrange
QA Contact: Yulia Kopkova
Depends On:
TreeView+ depends on / blocked
Reported: 2007-10-18 10:06 UTC by Alain RICHARD
Modified: 2018-10-20 02:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 21:13:39 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0118 normal SHIPPED_LIVE xen bug fix and enhancement update 2009-01-20 16:04:49 UTC

Description Alain RICHARD 2007-10-18 10:06:39 UTC
Description of problem:

The network-bridge do not support vlan interfaces. Our setup needs that the main
interface is a vlan one (eth3.1), so we have to invoke the network-bridge script
with something like :

/etc/xen/scripts/network-bridge start vifnum=0 netdev=eth3.1 bridge=vlan1

the problem is that the network-bridge scripts fails to do its job because it
issue a ifdown eth3.1 that removes the vlan 1 on interface eth3. The scripts
already make sure that the interface is not a bonding as a special case, but
must also treat a vlan interface as a special case.

A simple fix :

--- network-bridge      2007-10-18 10:13:26.000000000 +0200
+++ network-bridge.new  2007-10-18 10:13:38.000000000 +0200
@@ -78,6 +78,10 @@
     [ -f "/sys/class/net/$1/bonding/slaves" ]
+is_vlan() {
+    [ -f "/proc/net/vlan/$1" ]
 is_ifup() {
     ip link show dev $1 | awk '{ exit $3 !~ /[<,]UP[,>]/ }'
@@ -214,7 +218,7 @@
        mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether
        preiftransfer ${netdev}
        transfer_addrs ${netdev} ${vdev}
-       if is_bonding ${netdev} || ! ifdown ${netdev}; then
+       if is_bonding ${netdev} || is_vlan ${netdev} || ! ifdown ${netdev}; then
            # Remember the IP details if necessary.
            get_ip_info ${netdev}
            ip link set ${netdev} down

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


Comment 1 RHEL Product and Program Management 2008-06-02 20:30:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 3 Daniel Berrange 2008-09-09 09:48:49 UTC
Built into xen-3.0.3-72.el5

Comment 8 errata-xmlrpc 2009-01-20 21:13:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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