OpenVZ Forum


Home » General » Support » Shared ip address [solved] (How to use same ip in container and common system)
Shared ip address [solved] [message #42554] Wed, 27 April 2011 23:05 Go to previous message
gartt is currently offline  gartt
Messages: 2
Registered: April 2011
Junior Member
Hi all! Smile

I have four ip addresses 91.123.123.44 (eth0), 91.123.123.45 (eth0:0), 91.123.123.46 (eth0:1).

I'm doing
vzctl set 12345 --ipadd 91.123.123.45 --save
, and
ifconfig eth0:0 down
.

It working perfect, my site already accessible on 91.123.123.45 that pointed to my container 12345.
Now I want to use 91.123.123.46 (only for outgoing connections) on common server and container.
So I'm doing
vzctl set 12345 --ipadd 91.123.123.46 --save

When I'm trying to execute on common server
wget --bind-address=91.123.123.46 ip-owner.com
it's working correct, but when trying to execute on container 12345 it's fail with connection timeout.
The same situation when I'm trying to execute ping from container
ping -I 91.123.123.46 google.com
PING google.com (74.125.39.147) from 91.123.123.46 : 56(84) bytes of data.
^C
--- google.com ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 18046ms


Pls advice how I can use same IP address for outgoing connections from common server and container.

My OS is Debian squeeze 2.6.32-5-openvz-amd64

Thank you!

[Updated on: Fri, 29 April 2011 09:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: centos 5.6 template?
Next Topic: OpenVPN Access Server inside OpenVZ
Goto Forum:
  


Current Time: Fri Jul 26 11:24:58 GMT 2024

Total time taken to generate the page: 0.03450 seconds