From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Thu 25 Sep 2003 - 14:52:21 BST
On Thu, Sep 25, 2003 at 03:12:58PM +0200, Mike Fischer wrote:
> Hello fellow vserver-enthusiasts!
> 
> First of all thanks for the help with the NFS-mounts!
> 
> I've got another question:
> I'm running a webserver in a vserver. Said webserver has lots of 
> VirtualHosts. For each VirtualHost, I have a separate IP-address.
a virtual host should only require a separate address
if you need to use https, otherwise several 'named'
virtual hosts can share the same ip ...
> The host server has lots of virtual interfaces for this and the IPROOT 
> variable in the .conf file has lots of addresses in it.
> 
> So far I'm up to five adresses and now I've got requests for another twenty.
> 
> So here's my question:
> 
> How many adresses can a vserver handle? Is there any cap to that?
for ctx17a (or c17e)
#define NB_IPV4ROOT    16
       __u32 ipv4[NB_IPV4ROOT];/* Process can only bind to these IPs */
       __u32 mask[NB_IPV4ROOT];/* Netmask for each ipv4 */
       __u32 tbip[NB_IPV4ROOT];
       __u32 tbmask[NB_IPV4ROOT];
so there is a total of 16 addresses at the moment,
this can be changed in the kernel source code, but
a higher number will slow down the performance ...
HTH,
Herbert
> Thanks in advance for your shared thoughts,
> Mike Fischer