Hi all, Somebody can helps to setup xen bridges using ifcfg scripts on RHEL5? I''ve got three physical network interfaces and I woud like to setup three different xen bridges like this: eth0 ---------> xenbr0 eth1 ---------> xenbr1 eth2 ---------> xenbr2 My requierement is on eth0: I need to put an ip address and on xen bridges not. Many thanks. -- CL Martinez carlopmart {at} gmail {d0t} com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
See this documet will be a good help. http://wiki.xensource.com/xenwiki/XenNetworking On 3/28/07, carlopmart <carlopmart@gmail.com> wrote:> > Hi all, > > Somebody can helps to setup xen bridges using ifcfg scripts on RHEL5? > I''ve got > three physical network interfaces and I woud like to setup three different > xen > bridges like this: > > eth0 ---------> xenbr0 > eth1 ---------> xenbr1 > eth2 ---------> xenbr2 > > My requierement is on eth0: I need to put an ip address and on xen > bridges not. > > Many thanks. > > -- > CL Martinez > carlopmart {at} gmail {d0t} com > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I do this on my Xen servers, and when setting up the information was very unclear. It''s actually very simple. Edit xend-config.sxp and change the line : (network-script network-bridge) To : (network-script my-network-script) Then create /etc/xen/scripts/my-network-script as follows : #!/bin/sh # start bridges on both eth0 and eth1 XENDIR="/etc/xen/scripts" $XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0 $XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1 -- AlanP On Wed, March 28, 2007 1:59 pm, trilok nuwal wrote:> See this documet will be a good help. > http://wiki.xensource.com/xenwiki/XenNetworking > > > On 3/28/07, carlopmart <carlopmart@gmail.com> wrote: >> >> Hi all, >> >> Somebody can helps to setup xen bridges using ifcfg scripts on RHEL5? >> I''ve got >> three physical network interfaces and I woud like to setup three >> different >> xen >> bridges like this: >> >> eth0 ---------> xenbr0 >> eth1 ---------> xenbr1 >> eth2 ---------> xenbr2 >> >> My requierement is on eth0: I need to put an ip address and on xen >> bridges not. >> >> Many thanks. >> >> -- >> CL Martinez >> carlopmart {at} gmail {d0t} com >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alan Pearson wrote:> I do this on my Xen servers, and when setting up the information was very > unclear. It''s actually very simple. > > Edit xend-config.sxp and change the line : > > (network-script network-bridge) > > To : > (network-script my-network-script) > > > Then create /etc/xen/scripts/my-network-script as follows : > > #!/bin/sh > > # start bridges on both eth0 and eth1 > XENDIR="/etc/xen/scripts" > > > $XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0 > $XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1 >Thanks Alan, but using network-brige script, dom0 is bocked. My idea is to use ifcf-net scripts like this: /etc/sysconfig/network-scripts/ifcfg-eth0 # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ DEVICE=eth0 BOOTPROTO=static HWADDR=00:80:5A:4A:2B:FC ONBOOT=yes TYPE=Ethernet BRIDGE=xenbr0 /etc/sysconfig/network-scripts/ifcfg-xenbr0 # Xen Bridge0 DEVICE=xenbr0 TYPE=Bridge IPADDR=172.25.50.2 NETMASK=255.255.255.248 NETWORK=172.25.50.0 DELAY=0 STP=off ONBOOT=yes But with this config, xenbr0 needs to use an ip address ... -- CL Martinez carlopmart {at} gmail {d0t} com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok You''re having the same Dom0 problem I''m having. I found trying use the system if-cfg scripts to be unreliable (I wouldn''t be able to connect to the box) so on the suggestion of Jez, this is what I now use in my-network-script : #!/bin/sh brctl addbr xenbr0 brctl setfd xenbr0 0 brctl sethello xenbr0 0 brctl stp xenbr0 off ifconfig eth0 0.0.0.0 down ifconfig eth0 0.0.0.0 up brctl addif xenbr0 eth0 ifconfig xenbr0 172.16.5.33 netmask 255.255.255.224 sleep 5 brctl addbr xenbr1 brctl setfd xenbr1 0 brctl sethello xenbr1 0 brctl stp xenbr1 off ifconfig eth1 0.0.0.0 down ifconfig eth1 0.0.0.0 up brctl addif xenbr1 eth1 ifconfig xenbr1 172.16.5.65 netmask 255.255.255.224 sleep 5 ifconfig eth0 0.0.0.0 ifconfig eth1 0.0.0.0 route add default gw 172.16.5.62 xenbr0 exit 0 -- AlanP On Wed, March 28, 2007 2:39 pm, carlopmart wrote:> Alan Pearson wrote: >> I do this on my Xen servers, and when setting up the information was >> very >> unclear. It''s actually very simple. >> >> Edit xend-config.sxp and change the line : >> >> (network-script network-bridge) >> >> To : >> (network-script my-network-script) >> >> >> Then create /etc/xen/scripts/my-network-script as follows : >> >> #!/bin/sh >> >> # start bridges on both eth0 and eth1 >> XENDIR="/etc/xen/scripts" >> >> >> $XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0 >> $XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1 >> > > Thanks Alan, but using network-brige script, dom0 is bocked. My idea is to > use > ifcf-net scripts like this: > > /etc/sysconfig/network-scripts/ifcfg-eth0 > # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ > DEVICE=eth0 > BOOTPROTO=static > HWADDR=00:80:5A:4A:2B:FC > ONBOOT=yes > TYPE=Ethernet > BRIDGE=xenbr0 > > /etc/sysconfig/network-scripts/ifcfg-xenbr0 > # Xen Bridge0 > DEVICE=xenbr0 > TYPE=Bridge > IPADDR=172.25.50.2 > NETMASK=255.255.255.248 > NETWORK=172.25.50.0 > DELAY=0 > STP=off > ONBOOT=yes > > But with this config, xenbr0 needs to use an ip address ... > > > -- > CL Martinez > carlopmart {at} gmail {d0t} com >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users