• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Remove IP Address On Active Hostnig Account? & Change Subnet Mask

G

gd263

Guest
How would I Remove an IP Address On an account?

I keep getting this error:

IP address x.x.x.x is used for hosting or forwarding.




Also, how can I change the subnet mask on an IP Address? Do I have to remove the IP Address then re-add with the new subnet mask?



Thanks guys
 
i could do with knowing this too - i have an existing IP with the subnet mask 255.255.0.0 and have been advised to change this to 255.255.255.255, but can't see how i do this other than deleting and re-adding the IP.

I've tried editing the

/etc/sysconfig/network-scripts/ifcfg-eth0:1

and restarting the network service but it's giving me some error and not working (the error messages are in german so i've not quite worked them out yet).
 
Bad design for Plesk.

I just removed the entire client account, and re-added everything.
 
OK, it seems my method does work...I just typo'd the new subnet mask :)

So, to change your subnet mask on an IP in Plesk, edit the relevant file:

/etc/sysconfig/network-scripts/ifcfg-eth0:1 (if you have more than 2 IPs, yours might be in a different ifcfg-eth0:xx file...just check them all until you find your IP)

changing the subnet mask to the one you need.

Then run:

/sbin/service network restart

to restart/reload your network config. At this point, everything should work as you need it to, however for tidiness sake you should log into Plesk and 'reread IP' on the IP page. This will update Plesk's records.

I should point out that, whilst this worked for me, I cannot guarantee it will for you - follow my instructions at your own peril!
 
If your running RedHat, from the command prompt, you can just type SETUP and modify the network settings in there, once done, you can just type SERVICE NETWORK RESTART, that is, if your primary interface is incorrect.

I always run into problems when a subinterface is created so I just delete the file for it.

You can also setup an IP Mapping in PSA, add it to the IP Pool of the client, switch the domain to it, remove the incorrect IP from the Pool, then from the IP Mapping.
 
Back
Top