The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cant add IP issue

Discussion in 'General Discussion' started by addam, Jul 20, 2012.

  1. addam

    addam Member

    Joined:
    Sep 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    387
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    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.
     
  3. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page