|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] First Time User: Networking, and my best option.
On 01/11/2011 23:49, Vance, Derek CEO wrote:
Ok so I am very new to Xen, and from other people whom I work with say
that the networking is the hardest part of setting it up.
Currently I own a dedi with 8 IP's and 1 Nic. Currently its running debian.
I have setup Xen on the box and all the guest play nice, however
getting them to connect to the internet is a big issue.
Sometimes they drop out after a few, sometimes I can't get them to
connect at all. So I am looking to start from square one and get this
setup networked properly so that I can start using my vm servers.
a few addtl details: My data center has my box routed and only a
single mac mapped to an ip can access the internet and vice versa. I
have already tried having them change the mac on the router but it
completely shuts out the connection. At the moment I am running the vm
on a default bridged connection and if i ssh to dom0 and ping the ip
assigned to it it returns an ack, and if i ping dom0 from within domU
(Windows or Linux on the domU) it returns ack. but if i ping the
outside from the domU or i try to ping the domU from outside, it gives
no response.
You can set this up in a number of ways, depends how your IPs are given
to you.
One way is to setup the domU's with /32's and setup a route to your
dom0, make it the default gateway and set ip_forward to 1 on the dom0
This assumes your data center setup a routed block to your dom0 IP. If
your data center are doing it by MAC (why?) then your only choice is to
give all the IPs to the dom0 and NAT the domU's.
dom0:
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -p
domU
/etc/network/interfaces:
auto eth0
iface eth0 inet static
address <domU-ip>
netmask 255.255.255.255
post-up ip route add to <dom0-ip) dev eth0
post-up ip route add default to <dom0-ip>
/etc/init.d/networking restart (or reboot)
This is one of many ways that it could be done. If you need further help
give some more details as to how the IPs are given, dom0 and domU's
interfaces file, network topology and anything else you can think of.
Regards,
Steve
--
May the ping be with you ..
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|