IP Share and normal IP assign

GermanUbuntu

Member
Jul 2, 2015
2
0
21
Hello,

currently I am trying to host different Server(OS) with different and same IP's.

I can use 6 ips(one ip is for host)

And I need this VM's
VM-1 - ONLY internal IP and Internet connection(KVM)
VM-2 - ONLY internal IP and Internet connection(OpenVZ)
VM-3 - 2. IP Address(KVM)
VM-4 - 3. IP Address(OpenVZ)
VM-5 - 4. IP Address(OpenVZ)

How I tryed to solve this was over Masquerading.
My configuration(host system):
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
        address My IP
        netmask 255.255.255.192
        gateway My Gateway
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE

My configuration(VM-3):
Code:
# /etc/network/interfaces
# Loopback device:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address IP Address
  netmask 255.255.255.255
  pointopoint Gateway
  gateway Gateway
(Can't bring up eth0 @ VM-3)
Code:
Mar 12 11:57:41 test systemd[1]: networking.service: Failed to reset devices.list: Operation not permitted
Mar 12 11:57:41 test systemd[1]: Starting Raise network interfaces...
Mar 12 11:57:41 test ifup[200]: RTNETLINK answers: File exists
Mar 12 11:57:41 test ifup[200]: ifup: failed to bring up eth0
Mar 12 11:57:41 test systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 11:57:41 test systemd[1]: Failed to start Raise network interfaces.
Mar 12 11:57:41 test systemd[1]: networking.service: Unit entered failed state.
Mar 12 11:57:41 test systemd[1]: networking.service: Failed with result 'exit-code'.
How I can solve this problem?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!