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] First Time User: Networking, and my best option.

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] First Time User: Networking, and my best option.
From: Steve Allison <xen-users@xxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Nov 2011 00:06:34 +0000
Delivery-date: Tue, 01 Nov 2011 17:13:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAE2+OjfhGyAFNfi2k9u-CinsAanR6sGKv_o_LNyAhryLtUtVmw@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAE2+OjfhGyAFNfi2k9u-CinsAanR6sGKv_o_LNyAhryLtUtVmw@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
On 01/11/2011 23:49, Vance, Derek CEO wrote:
Ok so I am very new to Xen, and from other people whom I work with say
that the networking is the hardest part of setting it up.

Currently I own a dedi with 8 IP's and 1 Nic. Currently its running debian.
I have setup Xen on the box and all the guest play nice, however
getting them to connect to the internet is a big issue.

Sometimes they drop out after a few, sometimes I can't get them to
connect at all. So I am looking to start from square one and get this
setup networked properly so that I can start using my vm servers.

a few addtl details: My data center has my box routed and only a
single mac mapped to an ip can access the internet and vice versa. I
have already tried having them change the mac on the router but it
completely shuts out the connection. At the moment I am running the vm
on a default bridged connection and if i ssh to dom0 and ping the ip
assigned to it it returns an ack, and if i ping dom0 from within domU
(Windows or Linux on the domU) it returns ack. but if i ping the
outside from the domU or i try to ping the domU from outside, it gives
no response.

You can set this up in a number of ways, depends how your IPs are given to you.

One way is to setup the domU's with /32's and setup a route to your dom0, make it the default gateway and set ip_forward to 1 on the dom0

This assumes your data center setup a routed block to your dom0 IP. If your data center are doing it by MAC (why?) then your only choice is to give all the IPs to the dom0 and NAT the domU's.

dom0:
    echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
    sysctl -p

domU
    /etc/network/interfaces:
        auto eth0
        iface eth0 inet static
         address <domU-ip>
         netmask 255.255.255.255
         post-up ip route add to <dom0-ip) dev eth0
         post-up ip route add default to <dom0-ip>

    /etc/init.d/networking restart (or reboot)

This is one of many ways that it could be done. If you need further help give some more details as to how the IPs are given, dom0 and domU's interfaces file, network topology and anything else you can think of.

Regards,
Steve

--
May the ping be with you ..


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

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