OpenVZ Forum - RDF feed
type: channel
items: *SOLVED* Ip Problems Please Help Asap
items: Re: Ip Problems Please Help Asap

*SOLVED* Ip Problems Please Help Asap
type: item
description: 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?
creator: Chris.S
date: 2006-08-21T23:52:32-00:00

Re: Ip Problems Please Help Asap
type: item
description: 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.
creator: Vasily Tarasov
date: 2006-08-22T06:02:26-00:00

Re: Ip Problems Please Help Asap
type: item
description: -bash: cd: /vz/conf: No such file or directory And sorry i was referring to a server as a ve sorry for the confusion
creator: Chris.S
date: 2006-08-22T10:16:41-00:00

Re: Ip Problems Please Help Asap
type: item
description: Sorry, I meant /etc/vz/conf/ directory!
creator: Vasily Tarasov
date: 2006-08-22T10:19:28-00:00

Re: Ip Problems Please Help Asap
type: item
description: 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
creator: Chris.S
date: 2006-08-22T10:32:22-00:00

Re: Ip Problems Please Help Asap
type: item
description: 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.
creator: Vasily Tarasov
date: 2006-08-22T10:43:50-00:00

Re: Ip Problems Please Help Asap
type: item
description: I'm pretty new at linux and im trying to learn can you explain how to do these?
creator: Chris.S
date: 2006-08-22T10:48:28-00:00

Re: Ip Problems Please Help Asap
type: item
description: 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
creator: aistis
date: 2006-08-22T11:55:54-00:00

Re: Ip Problems Please Help Asap
type: item
description: [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
creator: Chris.S
date: 2006-08-22T20:31:52-00:00

Re: Ip Problems Please Help Asap
type: item
description: it looks like you forgot to apply systctl changes which are described in installation guide. particularly, ip_forward should be 1.
creator: dev
date: 2006-08-23T05:30:24-00:00

Re: Ip Problems Please Help Asap
type: item
description: i did change it mabe i did it wrong. Can someone send me their sysctl config file for centos 4?
creator: Chris.S
date: 2006-08-23T08:36:13-00:00

Re: Ip Problems Please Help Asap
type: item
description: Yay!! I got it to work but i logged in and did a dir and i got no response
creator: Chris.S
date: 2006-08-23T08:42:27-00:00

Re: Ip Problems Please Help Asap
type: item
description: Hi Chris maybe you forgot to : vzctl set <VEID> --nameserver <YOUR-NS-IP> --save
creator: umsdavid
date: 2006-08-24T14:20:13-00:00