I'm setting up a new box with a /29 and openvz and I wonder what is the recommended way to do the IP configuration? Nat or Bridge? I'm familiar with FreeBSD jails and in that case I think all I had to do was add the container/jail ips as aliases on eth0, the rest just worked. I've seen tutorials for NATing and Bridging traffic through venet0 but I'm wondering what the best way would be for my setup. Since i have a /29 the first IP will be the host and the other 4 will be containers, each should have their own public IP. How do I forward traffic to them so they respond just as if they were physical boxes?
I assume all 5 IPs are in the same subnet? Bind the first IP to the hardware node's eth0 as you would normally do, that's it. No need for aliases, no need for any kind of manual traffic forwarding.
Afterwards assign other 4 IP's to specific virtual machines trough openvz scripts. They'll just "magically" work. You can either assign one or more of the IPs to a single virtual machine.
Yes all ip are part of the same /29. I guess the reason why that step is missing from the tutorials is because of it's "magical" nature! I'll give it a shot when I get home tonight and report back.