UnixServerAdmin

Server Administration & Management

How to Show/Edit Reserved IPs not showing Reserverd IP’s in cPanel

Sometimes, it happens that when we try to reserve  some  IP’s from WHM-cPanel –> Main –> IP  Funtions –> Show / Edit Reserved ips along with  the reason  for reserving a IP   does not add any IP in  the  Reserve list and also does not hold Reason for Reserving  a IP even when you try to Rebuild the IP Address Pool. This happens because of the permissions on  these  two files :

1) /etc/reservedips

2) /etc/reservedipreasons

To fix this follow the below steps : Check the permissions on both the files

# lsattr /etc/reservedips

It will show the output as :

-u–ia——- /etc/reservedips

# lsattr /etc/reservedipreasons

It will show the output as :

-u–ia——- /etc/reservedipreasons

To remove those permissions

# chattr -aui /etc/reservedips

Now check the permissions again for /etc/reservedips

# lsattr /etc/reservedips

now it will  show the output as :

————- /etc/reservedips

Same for /etc/reservedipreasons

# chattr -aui  /etc/reservedipreasons

Now check the permissions again for /etc/reservedipreasons

# lsattr /etc/reservedipreasons

Now it will show the output as :

————- /etc/reservedipreasons

Advertisements

May 19, 2011 Posted by | cPanel | , | 1 Comment