Shared ip address [solved] [message #42554] |
Wed, 27 April 2011 23:05 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
gartt
Messages: 2 Registered: April 2011
|
Junior Member |
|
|
Hi all!
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 .
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
|
|
|
|
Re: Shared ip address [message #42562 is a reply to message #42560] |
Fri, 29 April 2011 09:09 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
gartt
Messages: 2 Registered: April 2011
|
Junior Member |
|
|
This is solution, forum.openvz.org/index.php?t=msg&goto=2530& .
Need to use some internal IP and make some NAT routes through iptables.
|
|
|