PDA

View Full Version : IP Pool Problem


TheServerDen
07-18-03, 10:53 PM
Hi Guys,
We've been trying for ages to fix an IP pool problem...
Basically the server has been assigned its main IP, and an extra 3 IPs for whatever.
Ok now we didn't add these IPs it was that way from the DC (we installed our own cpanel software after we got the box), but they show in WHM under reserve IPs as free, however we can't see them in add/remove IPs/show usage/etc.
We also can't remove/delete nor re-add. We also can't create IP based sites for our clients.
However all IPs are ping able to our server, so it’s listening? :confused: :confused: :confused:

The Cpanel ticket has been assigned and reassigned to different techs now it’s with Nick and now we're stalemate? Any Ideas??
Any ideas?

S3G
07-18-03, 11:08 PM
Add your IP's to /var/cpanel/mainips/root eg.

111.222.333.444
111.222.333.445
111.222.333.446
111.222.333.447

If you want to add them to another user simply create a new file /var/cpanel/mainips/username then add the ips to that file.

If those files are OK let us know :)

HTH

TheServerDen
07-18-03, 11:13 PM
Ok did that didn't work.
Its telling me the directory dosn't exist.

S3G
07-18-03, 11:22 PM
Hmmm OK... I would try creating the mainips directory, chmod 700 the mainips directory. Then create the 'root' file in the mainips directory.

TheServerDen
07-18-03, 11:30 PM
Nope didn't work...

S3G
07-18-03, 11:51 PM
Grrrr I had the same problem but I thought I only modified the mainips bit :mad:

I take it 'ifconfig -a' shows all the IP's?

TheServerDen
07-18-03, 11:55 PM
Nope

root@earth [~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:6E:24:C4:B0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x8800

eth1 Link encap:Ethernet HWaddr 00:40:F4:6D:1A:AD
inet addr:202.76.147.158 Bcast:202.76.147.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14703 errors:0 dropped:0 overruns:0 frame:0
TX packets:2935 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1543176 (1.4 Mb) TX bytes:887533 (866.7 Kb)
Interrupt:10 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3350 errors:0 dropped:0 overruns:0 frame:0
TX packets:3350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:920093 (898.5 Kb) TX bytes:920093 (898.5 Kb)

S3G
07-19-03, 12:08 AM
OK, I think you've found the problem. You're IP's should be aliased to one of your 'eth' adapters. So you should have entries for eth0, eth0:0, eth0:1, eth0:2, eth0:3 (one for each IP) in the ifconfig listing. Other than doing this on a local Debian server once this isn't something I know a lot about so I'm not going to offer advice incase I get it wrong and lock you out of your server :eek:

Good luck, I hope you get this fixed soon. :cool:

TheServerDen
07-19-03, 12:28 AM
Ok thanks again for your help...
I spose I'll hammer cpanel for a solution...

Jim
09-01-03, 10:21 AM
Does /etc/ips have the IP's and subnet masks listed? This may be missing part of the info and will stop you removing or re-adding the IP's. If so, make a backup, clean it up then try readding the IP's.