One thing is that I only have one public IP address, so I might have
to do NAT at the bridge that connects to the public Internet (the
other NIC connects to a private network so there is no IP issue).
Could anyone tell me how to set up NAT in this setting?
(The only tutorial I found is the following link, but it seems only
handles port translation case?)
http://www.howtoforge.com/debian_etch_xen_3.1_p4
Thanks,
Yi
On 6/28/07, Petersson, Mats <Mats.Petersson@amd.com>
wrote:>
>
> > -----Original Message-----
> > From: xen-users-bounces@lists.xensource.com
> > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Yi Wang
> > Sent: 28 June 2007 15:06
> > To: Xen-users@lists.xensource.com
> > Subject: [Xen-users] Can one domU use two bridges?
> >
> > Hello,
> >
> > My server has two NICs. Is there a way that I could create two
> > virtual interfaces in each domU such that on vif is attached to the
> > bridge with NIC1 and the other vif is attached to the bridge with
> > NIC2?
>
> Sure, you can connect two different NIC''s in each DomU and connect
them
> via the relevant bridge to the external connection.
>
> Assuming that xenbr0 => peth0, xenbr1 => peth1
> You would configure the guest as:
> vif = [ ''...., bridge=xenbr0'', ''....,
bridge=xenbr1'']
> The ''...'' is the usual setup for a network card, such as
> mac=xx:xx:xx:xx:xx and possibly "type=ioemu" if you are using HVM
> guests.
>
> In the guest you''d obviously need to configure the network cards
(or
> have a DHCP server to set them up that way from the outside) so that the
> network is routed the right way, but there''s absolutely no problem
with
> the principle of this operation [the routing is of course exactly the
> same problem as you''d have if you use two network card in a
PHYSICAL
> machine].
>
> --
> Mats
> >
> > Thanks,
> > Yi
> >
> > _______________________________________________
> > 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