Results 1 to 8 of 8
-
09-01-2007, 06:57 AM #1Junior Guru
- Join Date
- Jun 2004
- Posts
- 198
Problem adding IPs to cPanel/WHM server
I have setup a new cpanel/whm server. The main IP address works fine and I added the additional IP addresses the datacenter gave me.
That was yesterday, today I logged on and when I go to IP Functions >> Show or Delete Current IP Addresses all the addresses I added yesterday are showing up in red text and I cant ping any of them, not even if I ping them from the server itself. Seems that when I rebooted the server after the initial cpanel setup something has caused this.
Trouble is my name servers are sitting on 2 of the malfunctioning ip addresses so they aren’t working at all.
I have tried removing them ad re-adding them and they still show red.
Any idea what’s causing this?
Thanks for you help
-
09-01-2007, 09:17 AM #2Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Are the IPs still attached to the server? Try running this
service ipaliases restartDavid | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
09-01-2007, 09:43 AM #3Junior Guru
- Join Date
- Jun 2004
- Posts
- 198
thanks
I ran this and got the following reply:
UnRouting xxx.xxx.xxx.xx7 SIOCDELRT: No such device
[FAILED]
Shutting down eth0:1 SIOCSIFFLAGS: Cannot assign requested address
[FAILED]
UnRouting xxx.xxx.xx.xx8 SIOCDELRT: No such device
[FAILED]
Shutting down eth0:2 SIOCSIFFLAGS: Cannot assign requested address
[FAILED]
UnRouting xxx.xxx.xxx.xx9 SIOCDELRT: No such device
[FAILED]
Shutting down eth0:3 SIOCSIFFLAGS: Cannot assign requested address
[FAILED]
UnRouting xxx.xxx.xxx.xx0 SIOCDELRT: No such device
[FAILED]
Shutting down eth0:4 SIOCSIFFLAGS: Cannot assign requested address
[FAILED]
UnRouting xxx.xxx.xxx.xx1 SIOCDELRT: No such device
[FAILED]
Shutting down eth0:5 SIOCSIFFLAGS: Cannot assign requested address
[FAILED]
Bringing up eth0:1 [ OK ]
Routing xxx.xxx.xxx.xx7 SIOCADDRT: No such device
[FAILED]
Bringing up eth0:2 [ OK ]
Routing xxx.xxx.xxx.xx8 SIOCADDRT: No such device
[FAILED]
Bringing up eth0:3 [ OK ]
Routing xxx.xxx.xxx.xx9 SIOCADDRT: No such device
[FAILED]
Bringing up eth0:4 [ OK ]
Routing xxx.xxx.xxx.xx0 SIOCADDRT: No such device
[FAILED]
Bringing up eth0:5 [ OK ]
Routing xxx.xxx.xxx.xx1 SIOCADDRT: No such device
[FAILED]
-
09-01-2007, 09:47 AM #4Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
check the /etc/ips file and if IPs are not listed there, add them in the same manner as your main IP and run the earlier command.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
09-01-2007, 09:49 AM #5Junior Guru
- Join Date
- Jun 2004
- Posts
- 198
-
09-01-2007, 09:57 AM #6Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Main IP will not be present in the /etc/ips. It will be in the file /etc/sysconfig/network-scripts/ifcfg-eth0. I meant to add in the same manner if any entry was present. Dont edit this file. Enter into folder /etc/sysconfig/network-scripts/ and check if entries like ifcfg-eth0:1, ifcfg-eth0:2 is present. If yes, move those file in different name and restart ipaliases.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
09-03-2007, 06:06 AM #7Junior Guru
- Join Date
- Jun 2004
- Posts
- 198
Thanks again, but the datacenter rebuilt the box and all is well.
-
09-03-2007, 06:33 AM #8Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Good to hear. May be some network related file got messed up
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android