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

Re: [Xen-users] Xen + NAT + dhcp (static assignment using MAC)


  • To: sang.oh@xxxxxxxxx
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

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