From: Zhigang Wang Subject: [PATCH]Fix network-bridge ifup problem Date: Mon, 22 Jun 2009 18:00:03 +0800 Message-ID: <4A3F5623.6020700@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070408050000060503010605" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070408050000060503010605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit hi, when we want to setup a bridge without a ip address, function do_ifup will not activate the bridge. Eg. # ifconfig eth1 eth1 Link encap:Ethernet HWaddr 00:19:B9:41:2C:B9 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5096 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:395457 (386.1 KiB) TX bytes:0 (0.0 b) Interrupt:16 # ./network-bridge start netdev=eth1 bridge=xenbr1 will leave xenbr1 inactive. We should make the bridge active, then vif-bridge can work on the bridge. Signed-off-by: Zhigang Wang thanks, zhigang --------------070408050000060503010605 Content-Type: text/x-patch; name="network-bridge-ifup.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="network-bridge-ifup.patch" --- network-bridge 2009-05-19 07:35:20.000000000 +0800 +++ /share/tmp/network-bridge.new 2009-06-22 17:49:46.000000000 +0800 @@ -111,9 +111,9 @@ # use the info from get_ip_info() ip addr flush $1 ip addr add ${addr_pfx} dev $1 - ip link set dev $1 up - [ -n "$gateway" ] && ip route add default via ${gateway} fi + ip link set dev $1 up + [ -n "$gateway" ] && ip route add default via ${gateway} fi } --------------070408050000060503010605 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070408050000060503010605--