OpenVZ Forum


Home » Mailing lists » Users » venet ip question
venet ip question [message #45369] Tue, 28 February 2012 16:30 Go to next message
Gerhard Gappmeier is currently offline  Gerhard Gappmeier
Messages: 2
Registered: February 2012
Junior Member
From: *parallels.com
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.


--
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
Re: venet ip question [message #45400 is a reply to message #45369] Fri, 02 March 2012 03:29 Go to previous message
ragubhat is currently offline  ragubhat
Messages: 9
Registered: August 2008
Location: India
Junior Member
From: *parallels.com
Gerhard Gappmeier posts

>> problem is I run out of external IPs and want to use the external IPs of CT0 (eth1) for new containers.
>> Is this possible?

You may want to read this relevant doc at the OpenVZ Wiki

http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs

A similar issue was resolved here using this method, but you may have
to fine tune your run-level scripts to
make this rule persistent across reboots.

YMMV
--
Ragu Bhat
Help stop net censorship in India.
Censorship of Google, Yahoo, Facebook and Twitter has to stomped down!
Previous Topic: OpenVZ on Power?
Next Topic: Set disk quota on arbitary mount point
Goto Forum:
  


Current Time: Thu Dec 14 20:52:41 GMT 2017