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

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

To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] switching from bridge to nat on existing domU
From: Brian Krusic <brian@xxxxxxxxxx>
Date: Mon, 19 Apr 2010 16:47:10 -0700
Delivery-date: Mon, 19 Apr 2010 16:48:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] switching from bridge to nat on existing domU, Brian Krusic <=