addam

Active Member
Sep 25, 2008
30
0
56
I try to add another IP, but says its already active. Under show/delete current IP's only 1 is listed and not the one I'm trying to add. Does someone know what file I could edit to fix? or what the problem is?

Thanks
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
I try to add another IP, but says its already active. Under show/delete current IP's only 1 is listed and not the one I'm trying to add. Does someone know what file I could edit to fix? or what the problem is?

Thanks
Does the new IP display when you run "ifconfig" via SSH as root? Also check /etc/ips and see whether the IP listed there? If so remove it and try again.
 

CitizenK

Well-Known Member
Jun 5, 2012
64
1
58
On The Road
cPanel Access Level
Root Administrator
Hello,

If you can ssh into your server you can see if what ips have been installed on the system with this command
Code:
cat /etc/ips
If you see your IP there, you can then restart the ipaliases service with this command:
Code:
 /etc/init.d/ipaliases restart
Let us know if that does not work for you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
I'd actually suggest grepping for the IP in /etc to see if the IP is listed anywhere:

Code:
grep IP# /etc/*
Please replace IP# with the IP in question. If the system believes it is already added, it might not be in /etc/ips but in some other file. This could also happen if it is somehow listed in httpd.conf, so please also check that file:

Code:
grep IP# /usr/local/apache/conf/httpd.conf
If it's already been added by someone in ifconfig, please check that:

Code:
ifconfig | grep IP#
I always prefer to grep for the specific occurrence over trying to cat files and getting extraneous data.