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] please explain to me the networking of Xen & Xen guests

To: Sadique Puthen <sputhenp@xxxxxxxxxx>
Subject: Re: [Xen-users] please explain to me the networking of Xen & Xen guests
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Mon, 03 Mar 2008 10:02:14 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 03 Mar 2008 00:03:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47CBAB04.7000103@xxxxxxxxxx>
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>
Organization: SoftDux
References: <47CBA6BF.1060403@xxxxxxxxxxx> <47CBAB04.7000103@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Sadique Puthen wrote:
Rudi Ahlers wrote:
Hi all

I'm rather new to Xen, and want to understand the networking behind it.

Let's say my server has the following IP addresses: 192.168.10.10/24 - 192.168.10.20/24 and these are all setup on the same NIC, as eth0, eth0:1, eth0:2, etc etc.

Do I assign a static IP address to a Xen guest from this pool? And will this then be bridged, or how does it work?

Or do I rather un-assign the IP address(es) in question, and just set them up in the Xen guest?

Yes, You need to unassign these ips from dom0 and set them up in the Xen guest.

Ok, so the main machine will only have 1 or 2 IP's for itself, and the rest will be assigned to the VM's directly, no bridging?

Lastly, if I had mrtg / munin / Nagios on the main server, who will it be able to graph each Xen guest's traffic individually?

I think you can do this by monitoring traffic through the vifx.x interface which handles the network traffice for the guest.

I saw the vifx.x interfaces, but they don't have IP's:

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:61077 errors:0 dropped:0 overruns:0 frame:0
         TX packets:75812 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:18054893 (17.2 MiB)  TX bytes:44011369 (41.9 MiB)

vif35.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:7 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1569 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:32
         RX bytes:412 (412.0 b)  TX bytes:252960 (247.0 KiB)

vif36.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:2687 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3294 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:32
         RX bytes:214391 (209.3 KiB)  TX bytes:359955 (351.5 KiB)


How would I know which one is which one?
--Sadique


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



--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stugg


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