WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] routed network (not only one vif needed?)

To: Sueveges Gyoergy <georg@xxxxxxxxxxxx>
Subject: Re: [Xen-users] routed network (not only one vif needed?)
From: Black Dew <bdew@xxxxxxxxxxx>
Date: Wed, 26 Oct 2005 13:54:32 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 26 Oct 2005 11:52:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <opsy8e3affp7qfxi@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <160.114.55.5.1130243720.wm@xxxxxxxxxxxxxxxx> <435E80E8.8000002@xxxxxxxxxxxxx> <opsy8e3affp7qfxi@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
My curent setup is similar to what you trying to get. I have:

gw:/home/bdew# ip link
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:95:36:e6:ad brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:10:4b:2e:ac:17 brd ff:ff:ff:ff:ff:ff
4: br-exp: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1460 qdisc pfifo_fast
    link/ppp
6: vif1.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
7: vif2.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff


eth0 and eth1 are phisical cards connected to real networks.

ppp0 is an l2tp link running thru eth1.

vif1.0 and vif2.0 are created by xen scripts and connected to eth0 in 2
domains, they are assigned to br-exp and not used anywhere else.

br-exp is a (bridge) virtual interface connect to both domu's.

Routing looks like this:

172.28.0.0/19 dev eth1  proto kernel  scope link  src 172.28.29.156
10.0.0.0/16 dev eth0  proto kernel  scope link  src 10.0.0.1
10.1.0.0/16 dev br-exp  proto kernel  scope link  src 10.1.0.1
default via 212.143.208.155 dev ppp0

The domU's have adresses from 10.1.x.x subnet, and use 10.1.0.1 (br-exp)
as their default gateway.
The computers on eth0 network have their netmask set to 255.255.0.0, and
adresses from 10.0.x.x, 10.0.0.1 being the default gateway.

Infact this is a routed setup (no direct conection between domU's and
real networks), but it uses xen in bridged mode to consolidate all vif's
to 1 interface.

Sueveges Gyoergy wrote:
> Hi
>
>  Thnx for the answer.
>
> So do you think I need bridged network?
> I have the dom0 (having public IP, and being also part of the private
> network) and ths DOMU-s as the subnetwork (192.168.0.x).
> I don't understand what will be happened with the network interfaces at
> briding:
>  - There will be an xen-br0 interface created with my  DOMU's IP address
>  - When starting my DOM1 a mew VIF interface on DOM0 will be created,
> but  there will be no interface created on DOM1.
>
> What I would except: having one virtual interface on dom0, that all the
> domU could see as gateway. On  DOMu there should be an eth0 everywehere
> where I would set the appropriate IP adresses, gateways.. So with that
> I'd  have a virtual router on DOM0. Maybe is this concept worng?
>
> How schould I live with the interfaces created by xen bridge scripts in
> this case?
> Thnx
>  George


--
Best regards, Black Dew.
==============================
~ bdew@xxxxxxxxxxx ~ ICQ:2666606 ~ 2:400/567 ~


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>