Fix network-bridge ifup problem
PATCH 1/1 Fix network-bridge ifup problem
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 <[email protected]>
thanks,
zhigang
share/tmp/network-bridge.new renamed from network-bridge +2 -2
@@ -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 }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel