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.

IPs are gone after reboot

Discussion in 'General Discussion' started by Daniel, Mar 29, 2002.

  1. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    I added 126 IP's one by one to a new server via WHM. But when I reboot they are all gone!! What do I need to do so that they are loaded when the server boots? I have looked at other servers but can't seem to find the problem.
     
  2. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    The first ip is their right? if so you can do this.

    This will remove all ip's except the base ip so if you have ip's that are allready their skip step 1 and 2

    1. rm -f /etc/ips
    2. touch /etc/ips
    3. for i in `seq 2 126`;do echo &10.10.10.$i& && /etc/ips;done
    4. /etc/init.d/ipaliases restart
    5. /scripts/rebuildippool

    That should do it.

    Just to be safe you may want to just move /etc/ips to /etc/ips-old

    mv /etc/ips /etc/ips-old


    *note - make sure you replace 10.10.10 with the first three octls of your ip....
     
  3. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    That reloaded all the IPs but if I restart network (/etc/rc.d/init.d/network restart) all Ips but the main one still disappear. But at least I know a quick way to get them back now. Why are they not loaded automatically?
     
  4. netnexi

    netnexi Member

    Joined:
    Dec 9, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I have this same issue, where after a reboot I loose all but my main IP.
    Any ideas how to stop me loosing all extra IP settings after a reboot?
     
Loading...

Share This Page