|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] creating xenbr0 manually
Yes, you do.
in /etc/xen/scripts/network-bridge. In my dom0 i have two quad-ports ethernets, and each port is in a bridge (0 at 7).
if [ "$1" = "" ];then echo "Usage: Stop or Start"
echo " " exit 0 fi if [ "$1" = "start" ];then for i in `seq 0 7`;do #Add bridge X /sbin/brctl addbr br$i 2>/dev/null #Add interface X in the bridge (iface 0 in bridge 0, etc.)
/sbin/brctl addif br$i eth$i 2>/dev/null
#No ip in real interfaces /sbin/ifconfig eth$i 0 0.0.0.0 2>/dev/null
#No necessary, but I have ip in my bridges /sbin/ifconfig br$i 192.168.10.$i netmask 255.255.0.0 2>/dev/null done
elif [ "$1" = "stop" ];then for i in `seq 0 7`;do /sbin/brctl delbr br$i 2>/dev/null /sbin/brctl delif br$i eth$i 2>/dev/null /sbin/ifconfig br$i down 2>/dev/null /sbin/ifconfig eth$i down
done
fi
-- Djames Suhanko LinuxUser 158.760
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|