OpenVZ Forum


Home » General » Support » HN and VE IPs on different subnets
HN and VE IPs on different subnets [message #28537] Sun, 23 March 2008 00:53 Go to next message
ruber is currently offline  ruber
Messages: 4
Registered: March 2008
Junior Member
I installed openVz on a new server and migrated the VEs from one to another normally. But the VEs which use IPs on different subnet of the HN (65.X.X.X) can't access anything outside itself. They only can access internet if I change the IP to any 65.X.X.X, on the same subnet as the node. I have 3 ranges of public IPs and need to use them to VPS, 65.X.X.X must be only the node.

I followed the installation guide and did the same installation on the old node and the new. On the old node everything works fine. What can be wrong? I'm using CentOS 5 on the new node server.
Re: HN and VE IPs on different subnets [message #28545 is a reply to message #28537] Sun, 23 March 2008 15:59 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: N├╝rnberg, Germany
Senior Member

Which vzctl version is running on the new node ?

Re: HN and VE IPs on different subnets [message #28546 is a reply to message #28537] Sun, 23 March 2008 16:07 Go to previous messageGo to next message
ruber is currently offline  ruber
Messages: 4
Registered: March 2008
Junior Member
How can I view the version?
Re: HN and VE IPs on different subnets [message #28552 is a reply to message #28537] Mon, 24 March 2008 07:48 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I guess you need to add the VE subnet route to HW. Something like

/sbin/ip r a x.x.x.x/yy dev eth0

where x.x.x.x/yy is the network where your VE IPs are.

It basically tells that this network is available on eth0 directly.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: HN and VE IPs on different subnets [message #30059 is a reply to message #28537] Wed, 07 May 2008 12:40 Go to previous message
morphium is currently offline  morphium
Messages: 5
Registered: November 2007
Location: Dresden/Germany
Junior Member
I have the same problem.

HN has IP 91.143.80.A
VN has 91.143.87.B

I did
ip r a 91.143.87.0/24 dev eth0
on HN, but my VN still can't ping it's gateway (91.143.87.1)

//edit: solved it with:
arping -S 91.143.83.B 91.143.83.1 on the HostNode
(so that is "arping -S <VN-IP> <gateway-IP>" on the HN)

morphium

[Updated on: Wed, 07 May 2008 14:42]

Report message to a moderator

Previous Topic: Not understanding networking (beware - tons of questions!) [SOLVED]
Next Topic: *SOLVED* how to create a mount script
Goto Forum:
  


Current Time: Tue Feb 27 14:29:49 GMT 2024

Total time taken to generate the page: 0.02754 seconds