Hi all, I have create 2 guestos, and I have 2 network card, so how to set each guestos use on network card? To be noted, I have search some information from internet, the file /etc/xen/scripts/network-bridge has replaced by /etc/xen/scripts/my-network-bridge # more /etc/xen/scripts/my-network-bridge dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=eth0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1 and the 2 guestos boot successfully and ifconfig shows right, but cannot connect to intranet. Who can help me? Thanks a lot. Qiang Ma _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jorge Armando Medina
2010-Jul-28 19:19 UTC
Re: [Xen-users] how to set each dom use one network card?
ma qiang wrote:> Hi all, > I have create 2 guestos, and I have 2 network card, so how to set > each guestos use on network card? > > To be noted, I have search some information from internet, the file > /etc/xen/scripts/network-bridge has replaced by > /etc/xen/scripts/my-network-bridge > > # more /etc/xen/scripts/my-network-bridge > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=eth0 > "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1 >Did you restart xend to create bridges? can you show the output of ''brctl show''? when domUs are running This is a networking problem, just be sure bridges are created and deine a brirdge stanza in vif parameter. I have some examples here: http://tuxjm.net/docs/Administracion_de_Servidores_Virtuales_con_Xen_y_GNU_Linux/html-multiples/ch03s08.html#id472159> and the 2 guestos boot successfully and ifconfig shows right, but > cannot connect to intranet. > > Who can help me? > Thanks a lot. > > Qiang Ma > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Jorge Armando Medina Computación Gráfica de México Web: http://www.e-compugraf.com Tel: 55 51 40 72, Ext: 124 Email: jmedina@e-compugraf.com GPG Key: 1024D/28E40632 2007-07-26 GPG Fingerprint: 59E2 0C7C F128 B550 B3A6 D3AF C574 8422 28E4 0632 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yes, I did restart xend. And brctl shows as below. # brctl show bridge name bridge id STP enabled interfaces eth0 8000.00e081bb5977 no vif3.0 tap3.0 peth0 eth1 8000.00e081bb5978 no vif2.0 tap2.0 peth1 virbr0 8000.000000000000 yes 2010/7/29 Jorge Armando Medina <jmedina@e-compugraf.com>:> ma qiang wrote: >> Hi all, >> I have create 2 guestos, and I have 2 network card, so how to set >> each guestos use on network card? >> >> To be noted, I have search some information from internet, the file >> /etc/xen/scripts/network-bridge has replaced by >> /etc/xen/scripts/my-network-bridge >> >> # more /etc/xen/scripts/my-network-bridge >> dir=$(dirname "$0") >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=eth0 >> "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1 >> > > Did you restart xend to create bridges? > > can you show the output of ''brctl show''? when domUs are running > > This is a networking problem, just be sure bridges are created and > deine a brirdge stanza in vif parameter. > > I have some examples here: > > http://tuxjm.net/docs/Administracion_de_Servidores_Virtuales_con_Xen_y_GNU_Linux/html-multiples/ch03s08.html#id472159 > >> and the 2 guestos boot successfully and ifconfig shows right, but >> cannot connect to intranet. >> >> Who can help me? >> Thanks a lot. >> >> Qiang Ma >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > > -- > Jorge Armando Medina > Computación Gráfica de México > Web: http://www.e-compugraf.com > Tel: 55 51 40 72, Ext: 124 > Email: jmedina@e-compugraf.com > GPG Key: 1024D/28E40632 2007-07-26 > GPG Fingerprint: 59E2 0C7C F128 B550 B3A6 D3AF C574 8422 28E4 0632 > > > > _______________________________________________ > 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