Page 1 of 1

Multiple IP not showing in VestaCP

Posted: Mon Feb 17, 2014 5:21 pm
by HDPixel
I have setup multiple IPs on my Centos 6.5 (64bit) vps. I can ping to each ip from the outside. However, VestaCP doesn't list them when I try to add a domain. I restarted the VestaCP and the server with no luck. Any ideas?

[root@vps network-scripts]# ls -la ifcfg-eth*
-rw-r--r-- 1 root root 277 Feb 14 16:00 ifcfg-eth0
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:1
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:2
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:3

My ip file looks like this.

[root@vps network-scripts]# cat ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=XX.XXX.XX.XX
NETMASK=255.255.255.0
IPV6INIT=no

Re: Multiple IP not showing in VestaCP

Posted: Tue Feb 18, 2014 11:02 pm
by HDPixel
I figured it out a temporary fix. I wish I could do this on the VestaCP interface. I have a feeling that later when I install the SSL certificate, or the panel does an update, It will overwrite to the default IP. :(

Please let me know if there is a fixed for this.

1. Create a user, log in as the user and create a domain web host account

3. Create a file for the additional ip (1.2.3.4)

1.2.3.4.conf
NameVirtualHost 1.2.3.4:8080
Listen 1.2.3.4:8080

2.Add the IPs (1.2.3.4) to the file /etc/httpd/conf.d/mod_extract_forwarded.conf and edit line below

#Line 58
MEFaccept 127.0.0.1 1.2.3.4

3. Edit the configuration for the domain created earlier.
Go to the home directory for the account
/home/$account_dir$/conf/web

4. Edit the file httpd.conf and nginx.conf and replace the ip to what you would like to use.

Re: Multiple IP not showing in VestaCP

Posted: Wed Feb 19, 2014 7:03 am
by demian
Perhaps, You add IP manual

try to execute the command

Code: Select all

sudo v-update-sys-ip 
how ever... better to add new IP from the panel

Re: Multiple IP not showing in VestaCP

Posted: Wed Feb 19, 2014 11:02 pm
by HDPixel
I would like to confirm that executing the command below on my Centos 6.5 populated the IPs in the Control Panel interface. Yes, I now see the IP menu which has the interface to add more IPs.

Thank you so much.

Code: Select all

# > /usr/local/vesta/bin/v-update-sys-ip

demian wrote:Perhaps, You add IP manual

try to execute the command

Code: Select all

sudo v-update-sys-ip 
how ever... better to add new IP from the panel

Re: Multiple IP not showing in VestaCP

Posted: Fri Mar 18, 2016 12:46 am
by Spooney
Thanks HDPixel that was the command I was looking for!

/usr/local/vesta/bin/v-update-sys-ip

Re: Multiple IP not showing in VestaCP

Posted: Sat Mar 19, 2016 12:30 am
by skamasle
You dont need run it from cli, so you can run it from vestacp -> IP -> menu -> Reread IP and it do the same.