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

[Xen-users] switching from bridge to nat on existing domU


  • To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Brian Krusic <brian@xxxxxxxxxx>
  • Date: Mon, 19 Apr 2010 16:47:10 -0700
  • Delivery-date: Mon, 19 Apr 2010 16:48:39 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

My current domU config.sxp uses the /etc/xen/scripts/vif-bridge script

I see a vif-nat script and would like my domU to use it.

I changed my config.sxp as follows;

(device
        (vif
            (bridge bond0)
            (mac 00:16:3e:3d:e0:e6)
            (script /etc/xen/scripts/vif-bridge)
            (uuid 8b3535c4-25e5-521c-e495-27f956b99fb8)
            (backend 0)
        )
)

to

(device
        (vif
            (bridge bond0)
            (mac 00:16:3e:3d:e0:e6)
            (script /etc/xen/scripts/vif-nat)
            (uuid 8b3535c4-25e5-521c-e495-27f956b99fb8)
            (backend 0)
        )
)

My Running Xen book has an example (unsure if it applies to Xen 3.4.2 which I'm running) of also adding;

vif = [ 'ip = 10.0.10.200', ]
NETMASK="255.255.0.0"
GATEWAY="10.0.10.1"

So would my config look like this;

(device
        (vif
            (bridge bond0)
            (mac 00:16:3e:3d:e0:e6)
            (script /etc/xen/scripts/vif-nat)
            (vif = [ 'ip = 10.0.10.200', ])
            (NETMASK="255.255.0.0")
            (GATEWAY="10.0.10.1")
            (uuid 8b3535c4-25e5-521c-e495-27f956b99fb8)
            (backend 0)
        )
)


Would this then be the ip addy of my domU?

And how would I get it to like like 10.10.10.200 with a gateway of 10.10.10.1, same subnet mask?

Basically, I would like my domU to think its still 10.0.10.200 but the world to think its 10.10.10.200, just a NAT.

Unsure how to do this in Xen, I've done it in VMWare but via a GUI.

- Brian

_______________________________________________
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®.