OpenVZ Forum


Home » General » Support » *SOLVED* Ip Problems Please Help Asap
*SOLVED* Ip Problems Please Help Asap [message #5498] Mon, 21 August 2006 23:52 Go to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
Hello i just setup a fresh dedicated server i'm trying to make a vps.

I successfully created the vps and i can enter it via vzctl enter

but i cannot access the server from the ip that i allocated it.


I dont think that the ip configuration on the node is setup for the ips that i will be using to make the vps.

Is there a specific file where i need to add the ips that i own so that they will work correctly when im creating vps's?

[Updated on: Fri, 25 August 2006 06:43] by Moderator

Report message to a moderator

Re: Ip Problems Please Help Asap [message #5506 is a reply to message #5498] Tue, 22 August 2006 06:02 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Quote:

but i cannot access the server from the ip that i allocated it.


Sorry, I don't quite undestand you... What is "server" in your post? Is it host node or VE?
Can you descibe please what do you do in details and what fails?

Quote:

I dont think that the ip configuration on the node is setup for the ips that i will be using to make the vps.

Is there a specific file where i need to add the ips that i own so that they will work correctly when im creating vps's?


You have to give only the following command:
# vzctl set <VEID> --ipadd <IPADDRESS>  --save

to start network inside VE. This <IPADDRESS> will be stored in <VEID>.conf file in /etc/vz/conf/ directory.

HTH,
vass.

[Updated on: Tue, 22 August 2006 10:18]

Report message to a moderator

Re: Ip Problems Please Help Asap [message #5513 is a reply to message #5506] Tue, 22 August 2006 10:16 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
-bash: cd: /vz/conf: No such file or directory

And sorry i was referring to a server as a ve sorry for the confusion
Re: Ip Problems Please Help Asap [message #5514 is a reply to message #5513] Tue, 22 August 2006 10:19 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Sorry, I meant /etc/vz/conf/ directory! Rolling Eyes
Re: Ip Problems Please Help Asap [message #5515 is a reply to message #5498] Tue, 22 August 2006 10:32 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
another thing is my block of ips last subnet digits are .224

How can i specify the subnet for the ip that i gave my server

-bash: cd: /etc/vz/conf/: No such file or directory

[Updated on: Tue, 22 August 2006 10:33]

Report message to a moderator

Re: Ip Problems Please Help Asap [message #5517 is a reply to message #5515] Tue, 22 August 2006 10:43 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
In older versions of vzctl .conf files reside in /etc/sysconfig/vz-scripts/ directory. In this I suggest to you to upgrade to newer version.

You didn't answer my question concerning how you can't connect to VE. Please, describe your network configuration, what do you do to test connection. Provide /proc/sys/net/ipv4/ip_forward output, ifconfig inside VE and on HN.

Thanks.
Re: Ip Problems Please Help Asap [message #5518 is a reply to message #5517] Tue, 22 August 2006 10:48 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
I'm pretty new at linux and im trying to learn can you explain how to do these?
Re: Ip Problems Please Help Asap [message #5521 is a reply to message #5498] Tue, 22 August 2006 11:55 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

Chris, you don't need to specify subnet mask for the IPs you are giving to your VEs as it is point-to-point connection with your HW node. Just add them to VE using "vzctl set <VPSID> --ipadd x.y.z.w --save" and check the connectivity.

If that doesn't work, provide outputs of the following commands on HW node (server):

# ip a l
# vzctl exec <VPSID> ip a l
# cat /proc/sys/net/ipv4/ip_forward




Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: Ip Problems Please Help Asap [message #5532 is a reply to message #5521] Tue, 22 August 2006 20:31 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
[root@175 ~]# ip a l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:2c:a8:2b:ab brd ff:ff:ff:ff:ff:ff
inet 64.9.105.175/26 brd 64.9.105.191 scope global eth0
1: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void



[root@175 ~]# vzctl exec 200 ip a l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 64.9.105.122/32 brd 64.9.105.122 scope global venet0:0
inet 64.9.105.123/32 brd 64.9.105.123 scope global venet0:1



[root@175 ~]# cat /proc/sys/net/ipv4/ip_forward
0


Re: Ip Problems Please Help Asap [message #5539 is a reply to message #5532] Wed, 23 August 2006 05:30 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

it looks like you forgot to apply systctl changes which are described in installation guide.
particularly, ip_forward should be 1.


http://static.openvz.org/userbars/openvz-developer.png
Re: Ip Problems Please Help Asap [message #5540 is a reply to message #5539] Wed, 23 August 2006 08:36 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
i did change it mabe i did it wrong.

Can someone send me their sysctl config file for centos 4?
Re: Ip Problems Please Help Asap [message #5541 is a reply to message #5540] Wed, 23 August 2006 08:42 Go to previous messageGo to next message
Chris.S is currently offline  Chris.S
Messages: 15
Registered: August 2006
Junior Member
Yay!! I got it to work but i logged in and did a dir and i got no response Sad
Re: Ip Problems Please Help Asap [message #5620 is a reply to message #5541] Thu, 24 August 2006 14:20 Go to previous message
umsdavid is currently offline  umsdavid
Messages: 1
Registered: August 2006
Location: Malaysia
Junior Member

Hi Chris maybe you forgot to :

vzctl set <VEID> --nameserver <YOUR-NS-IP> --save

Razz


DAVE KUWARTZ
Previous Topic: *SOLVED* delete IPs for VPS?
Next Topic: *SOLVED* sendmail: low on space
Goto Forum:
  


Current Time: Sun Jul 14 22:05:34 GMT 2024

Total time taken to generate the page: 0.02357 seconds