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

[Xen-users] Xen VPS with 2 IPs from 2 different LANs

  • To: xen-users@xxxxxxxxxxxxx
  • From: Hostvision Andrei <andrei@xxxxxxxxxxxxx>
  • Date: Tue, 04 Aug 2015 08:57:20 +0300
  • Delivery-date: Tue, 04 Aug 2015 16:58:11 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>


I am new to Xen and I am trying to understand how to add 2 different IPs on the same guest VPS.

First, I am going to explain my node setup, which is a physical server with 32GB RAM and 2 NICs on it. The first NIC has a public IP 82.XXX.YYY.ZZZ and the second NIC is for an internal network that connects directly through a cable to a cPanel server - private IP 192.168.XXX.YYY.

From what I've tested until now, I only managed to create a VPS that uses either the public network or the private network, but not both. If I create the VPS with either the public IP or the private IP, I can ping them and also connect through SSH. I also have to mention that I made a bridge for each NIC (right now I have eth0 + eth1 + xenbr0 + xenbr1).

To be able to alternate VPS configuration between the public and private network, I had to modify each time the bridge settings from /usr/local/solusvm/data/advanced.conf before the creation of the VPS. So, for instance, If I want a VPS with a private IP, I would modify /solusvm/data/advanced.conf to XENPVBRIDGE="xenbr1" and if I want a VPS with a public IP, I would modify to XENPVBRIDGE="xenbr0".

The problem is that if I create a VPS that uses some IP from the same subnet as the node (82.XXX.YYY.ZZZ) and then try to add a private IP, I cannot ping the private IP from the internal network, and viceversa, if I create a VPS with private IP (192.168.XXX.YYY), I can connect to it and ping it from the internal network, but if I add a public IP, I cannot ping it or connect to it.

I don't know how to force SolusVM or Xen to create the VPSs with two connections (one with a public IP, one with a private IP).

Also, I don't know if this information will help in this issue, but I use SolusVM for VPS administration (to create VPS, IP allocation, delete VPS, etc.).

Please let me know what other info do I need to provide to solve this problem.

Thank you.

Xen-users mailing list



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