OpenVZ Forum


Home » General » Support » [Help] - Ip change (How to change IP from class 10.0.0. to 10.0.1.)
icon9.gif  [Help] - Ip change [message #40694] Tue, 21 September 2010 14:04 Go to next message
g_dallan@yahoo.com is currently offline  g_dallan@yahoo.com
Messages: 3
Registered: September 2010
Junior Member
Dear Reader,
first of all thank you for you attention and time.

THE PROBLEM(this is just an example - I have some virtual servers):

The main server IP is 1.0.0.40 (not "natted")

The virtual server IP is 10.0.0.38 ("natted", for example 111.111.111.112)

All is working well: the virtual server send and receive (i.e. apache + postfix).

Now I have to change all the IP (the main server and all the virtual servers) from 10.0.0.xxx to 10.0.1.xxx


WHAT I HAVE DONE

I tried to delete the old virtual IP (10.0.0.38) and reassign a new IP (10.0.1.38).

If I try to connect by browser to my website (http://10.0.1.38), I get the (html) page.

But there's an error: (for example) if this page try to send and email (to my yahoo account), inside the page code by php mail, command, the mailq shows the following error:

(delivery temporarily suspended: Host or domain name not found. Name service error for name=yahoo.com type=MX: Host not found, try again)

I think it depends on gateway, but I do not know how to solve the problem.

The route -n command shows:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.38 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 10.0.0.200 0.0.0.0 UG 0 0 0 eth0


Can you help me?

PS. excuse me for my bad english. I'm a linux newbie. Thank you again.
Re: [Help] - Ip change [message #40695 is a reply to message #40694] Tue, 21 September 2010 14:34 Go to previous messageGo to next message
TheStig is currently offline  TheStig
Messages: 94
Registered: December 2008
Member
did you or you nameservice provider change the mx and the reverse entry of your mailserver to the new ip address?
Re: [Help] - Ip change [message #40696 is a reply to message #40695] Tue, 21 September 2010 15:36 Go to previous messageGo to next message
g_dallan@yahoo.com is currently offline  g_dallan@yahoo.com
Messages: 3
Registered: September 2010
Junior Member
Quote:
did you or you nameservice provider change the mx and the reverse entry of your mailserver to the new ip address?


I think the problem is in the gateway configuration.

The problem is not in the MX (or mailserver). In the same page I do a curl call. With 10.0.0.38 it works right. With 10.0.1.38 it does not.

$ch=curl_init();
	$url="http://www.google.it";
	curl_setopt($ch, CURLOPT_URL,$url);
	curl_setopt($ch, CURLOPT_PORT , 80);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec($ch);
curl_close($ch);
//
echo($result);

Re: [Help] - Ip change [message #40721 is a reply to message #40696] Thu, 23 September 2010 13:10 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

lets try to localize the problem i.e.
are you able to:
- reach any host from inside the VE (except the HN)
- reach your VE from outside (except the HN)
?

I suppose VE<---->HN works just fine,
but you are not able to reach either the VE from outside or outside from the VE or both cases happen.

Different subnets might be the reason. Why do you expect your VE to be reachable? It belongs to different subnet than HN.

Try to set "NEIGHBOUR_DEVS=all" in /etc/vz/vz.conf and restart vz service. But make sure that it is technically possible to have a VE belonging to different subnet.
Re: [Help] - Ip change [message #40722 is a reply to message #40721] Thu, 23 September 2010 13:48 Go to previous message
g_dallan@yahoo.com is currently offline  g_dallan@yahoo.com
Messages: 3
Registered: September 2010
Junior Member
Thank you maratrus,
I will try in the next days.

Thank you again,
gil
Previous Topic: Kernel Names
Next Topic: running cobbler inside a CT
Goto Forum:
  


Current Time: Wed Aug 14 06:18:31 GMT 2024

Total time taken to generate the page: 0.03539 seconds