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] Xen + NAT + dhcp (static assignment using MAC)

To: sang.oh@xxxxxxxxx
Subject: Re: [Xen-users] Xen + NAT + dhcp (static assignment using MAC)
From: "Christopher Isip" <cmisip@xxxxxxxxx>
Date: Fri, 27 Jun 2008 21:08:02 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 27 Jun 2008 18:08:37 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=PLxl87N2slYQbU1XyCJIauHkS3gEdDhLyyB4OG1vEyU=; b=OjhSdv0jsJKb4dF5DxedbnoIdsjFPtzTSWHgsHuWbqLLf9YDYMp/mCon+RM8aZn04x r5uO0kMfOzLqmAIEFQWvJoT+KKchE95Aua5HrnVi/kDpSiHzAQtlqMI4YequF2lXsnbY Qiq1zL3whmyFQMan11b3NKCZYq5YtdlWpHGQU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=VH/gf3aDHzhfMEFGHzKWMFGkXssAcpIpBbHH5zOV1hOwInTizjj5VnS8QW+CohJLlv hwBrionRvOFRATRZQXciQMOIUVnCiJw34ClyjJy7nef7XACkFWXnEjnryzgf9Ha7s3fd 8fAwnSifeOjQXkRZxxsbCcudHNJMHiGdxsJAA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f0d42e910806271435ifaff676qdb728fbb4b0895ca@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: <f0d42e910806271435ifaff676qdb728fbb4b0895ca@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Fri, Jun 27, 2008 at 5:35 PM, Sang Oh <sangoh@xxxxxxxxx> wrote:
Hi,

I am using Xen packages that came with CentOS 5.
I am a noob at Xen, so please bear with me.
I tried the tutorials I found on the internet, but none of them seem to work for me.

GOAL: I want the domU machines to have local NATed network connection to the internet via some fixed IP address.

I had no luck trying to get static IPs to work.  (I can ping any machine on the internet, but DNS resolution never worked for me)

domU's getting an IP via dhcp works fine.  (internet connection works as supposed to)
But I am having trouble telling dnsmasq to assign a specific IP to a machine with a specific MAC address.
Here is what I've tried.

/etc/dnsmasq.conf
...snip...
dhcp-host=00:16:3e:4d:bc:30,192.168.122.11
...snip...

But this is being totally ignored.  Am I even modifying the relevant file?
Does dnsmasq handle all dhcp and dns requests from all domU's?

This is minor, but how do I change the network pool?
dhcp request wants to hand out 192.168.122.0 addresses, but I want to change this.

Any help will be appreciated!

Thanks!

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

The easiest way to do nat is with shorewall.  You need at least two interfaces. One for the external connection and the other interface bridged to your domU's

 Chris


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>