OpenVZ Forum


Home » Mailing lists » Users » venet ip question
Re: venet ip question [message #45370 is a reply to message #45366] Tue, 28 February 2012 22:07 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On Feb 28, 2012 9:41 PM, "Gerhard Gappmeier" <gerhard.gappmeier@ascolab.com>
wrote:
>
> Hi
>
> I currently have two OpenVZ machines with same configuration.
> CT0 has two network devices:
> eth0: internal private subnet
> eth1: internet
>
> The containers can have internal and/or external IPs.
> Access is controlled by iptables in CT0.
> I only use IP based venet devices currently.
>
> The problem is I run out of external IPs and want to use the external IPs
of CT0 (eth1) for new containers.
>
> Is this possible? I'm not sure how venet IPs can be routed over eth1 when
eth1 has no IP.

Assuming you have multiple IPs on eth1 and you want those to be used for
some of your containers, you need to
1 remove those IPs from eth1
2 add those IPs to containers

Speaking of routing, it depends on your setup. If eth1 still have an
address in the same IP network as your CTs, you are fine.

>
>
> --
> mit freundlichen Grüßen / best regards
>
> Gerhard Gappmeier
> ascolab GmbH - automation systems communication laboratory
> Tel.: +49 9131 691 123
> Fax: +49 9131 691 128
> Web: http://www.ascolab.com
> GPG-KeyId: 5AAC50C4
> GPG-Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4
>
> --
> ascolab GmbH
> Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
> Sitz der Gesellschaft: Am Weichselgarten 7 • 91058 Erlangen • Germany
> Registernummer: HRB 9360
> Registergericht: Amtsgericht Fürth
>
>


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Previous Topic: CentOS 6: default inbound traffic limited for CT's
Next Topic: OpenVZ on Power?
Goto Forum:
  


Current Time: Thu Oct 09 18:42:45 GMT 2025

Total time taken to generate the page: 0.07228 seconds