[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.