Daniel

Well-Known Member
PartnerNOC
Aug 13, 2001
164
0
316
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.
 

shaun

Well-Known Member
PartnerNOC
Verifed Vendor
Nov 9, 2001
702
1
318
San Clemente, Ca
cPanel Access Level
DataCenter Provider
Twitter
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....
 

Daniel

Well-Known Member
PartnerNOC
Aug 13, 2001
164
0
316
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?
 

netnexi

Member
Dec 9, 2003
8
0
151
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?