Multi-IP in one VM

yugawara

New Member
Mar 17, 2012
22
0
1
I did not find it may have been in this forum past.

I like to use Multi-IP on ONE VM (Container OpenVZ).
But only we can access oroginal IP of the VM.
I tried folloing on ssh proxmoxVE :
iptables -A INPUT -d (additional-ip) -j ACCEPT
But no effect.
Would you advice me how to Multi-IP in one VM ?

yugawara
 
This is a self answer.

I found one solution.
Modifying vz conf file.
vi /etc/vz/conf/10?.conf

from like as ;
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="192.168.1.132"
HOSTNAME="centos5.xxxxxx.net"

Adding multi-IPs ;
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="192.168.1.132"
IP_ADDRESS="192.168.1.133"
IP_ADDRESS="192.168.1.134"
HOSTNAME="centos5.xxxxxx.net"

And restart the VM.

I do not know what it is allowed.
However, it is working correctly following my indications.
Please give me any advice.

Yugawara
 
you can enter multiple IP via gui (venet), just enter them all in one line, separated with a space.
 
Thank you. Now I can add multiple IP via venet.

I am a beginner for Proxmox, so I donated little.
 
great, thanks.
 
Sorry, it was not solved.

Adding multiple IP via venet is good for only class-C
=(255.255.255.0), not effective for /22 =(255.255.252.0).

Of course I defined eth0 with xx.xx.xx.xx/255.255.252.0.

Would you please advice me again ?
 
Dear

Since I'm using the 'bond mode' already, 'Bridge mode' can not be used.

And I don't like to place any other servers under the 'Bridge mode'.
I like to place all servers to /22 flat aria.
Then, I like to assign dispersed IPs to the ProcmoxVE for security reason.

So, 'Bridge mode' not suitable I think.

Yugawara