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.

Mass delete IPs?

Discussion in 'General Discussion' started by Zion Ahead, Apr 6, 2010.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    How do I mass delete IPs I no longer use on the server (secondary assignment, not prime subnet)

    For example I have a specific /27 I want to remove in one shot, instead of one IP at a time via whm delete IPs function
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    cPanel add each IP address per line into /etc/ips config file. Edit the file

    and delete the lines the IPs are on. Save the file and restart 'ipaliases' service.

     
  3. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    fixed: thanks
     
    #3 Zion Ahead, Apr 6, 2010
    Last edited: Apr 6, 2010
Loading...

Share This Page