Network setup how to do it. [message #37080] |
Tue, 18 August 2009 03:15 |
michaelvv
Messages: 7 Registered: October 2008
|
Junior Member |
|
|
Hi ...
I'm told to make this setup would it be possible.... I want 2 openvz containers how should i do the setup...
Due to my limited network experience in this special case please guide me with a
setup for :
/etc/network/interfaces on Host
and how should i configure the containers bridge or nat...
Want i want to do.
The containers should be able to ping the HOST and each other and should be able to connect to the gateway.
Is it possible ???
The 192.168.1 range is a WAN ip of course...
Host 'Debian Proxmox'
ip : 192.168.1.106
subnet : 255.255.255.0
gateway : 192.168.1.105
Container 1 VEID [101] 'Centos 5.2'
ip : 192.168.1.146
Default Gateway : 192.168.1.145
Subnet Mask : 255.255.255.252
Container 2 VEID [102] 'Centos 5.2'
ip : 192.168.1.150
Default Gateway : 192.168.1.149
Subnet Mask : 255.255.255.252
Thanks.
/Michael
[Updated on: Tue, 18 August 2009 05:06] Report message to a moderator
|
|
|
|
|
Re: Network setup how to do it. [message #37261 is a reply to message #37133] |
Sun, 30 August 2009 08:16 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi Michael,
as far as I understand, the first problem was solved and you coped with general network configuration i.e. you configured everything you wanted to do. So, the second problem appeared,
Quote: |
When i try to connect from INTERNET to the CT i hit the HOST.
|
It's a little bit strange request from my point of view because each of your VE has a PRIVATE ip addresses so no wonder they are invisible from outside. Assume that you have a router which has a few computers behind it (this configuration similar to HN<--->VEs). A router is reachable from outside but the internal computers are not. It's a common situation.
If you want to make a container to be visible from outside you can
- assign it a public ip address
- make a particular port be visible from Internet.
The way is described http://wiki.openvz.org/Nat#How_to_provide_access_from_Intern et_to_a_container
|
|
|