Brian Krusic
2010-Apr-19 23:47 UTC
[Xen-users] switching from bridge to nat on existing domU
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@lists.xensource.com http://lists.xensource.com/xen-users