OpenVZ Forum


Home » General » Support » Multiple /24's on a host and containers
Multiple /24's on a host and containers [message #37228] Thu, 27 August 2009 14:33 Go to next message
bithead2 is currently offline  bithead2
Messages: 5
Registered: July 2009
Junior Member
What is the "right" way to assign 2 different /24's on a host node so that you can divvy up the IP addresses over multiple containers?

For example, let's say I want to do this on centos:


208.192.x.1/24
--------------- eth ---- CentOS OpenVZ Node ---- container 1 208.192.x.2
208.192.y.1/24 -- ---- ...................| ---- container 2 208.192.y.2

Thanks,
CJ

[Updated on: Thu, 27 August 2009 14:36]

Report message to a moderator

Re: Multiple /24's on a host and containers [message #37246 is a reply to message #37228] Fri, 28 August 2009 12:59 Go to previous message
tomp is currently offline  tomp
Messages: 64
Registered: August 2007
Member
Hi,

As i understand it, using venet, the host machine acts a router using /32 routing.

This means that as long as both subnets are correctly routed to the segment that the host machine is sitting in, the VPSs can use any mixture of IPs from either subnet.
Previous Topic: How to access private IPs from a container
Next Topic: vzctl enter CT via SSH (wrapper?)
Goto Forum:
  


Current Time: Fri Aug 15 09:13:32 GMT 2025

Total time taken to generate the page: 0.48833 seconds