Two different subnets on one nodes container?

Der-Tim

New Member
Apr 30, 2013
4
0
1
Hamburg, Germany
Hi there,

I'm using a /27 subnet provided by my datacentre. All three Proxmox nodes are residing within this subnet. As this subnet's full by now, they assigned me a smaller /29 subnet. I don't have enough IPs within this subnet to assign each Proxmox node one out of this. Do I have a chance to use IPs from this new subnet for containers?

Regards, Tim
 
But how to define the default gateway's IP address for a container, where I'd like to use the new subnet? Or do I have to use the veth-interface option in the container's configuration?
 
But how to define the default gateway's IP address for a container, where I'd like to use the new subnet? Or do I have to use the veth-interface option in the container's configuration?
Hi Tim,
right - use the network-device (veth).
This is an bridged interface like on a kvm-VM. You simply define the ip config for the two NICs inside the OpenVZ-VM to get networking in both networks.

Udo
 
you have to use the bridged device, i think thats clear

maybe youd like o use different gateways, if this is the case you've to setup iptables with some rules to route the traffic from each subnet to each subnets-gateway
 

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!