Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
Unable to remove an either IPv4 or IPv6 address from Tools & Settings > IP Addresses with error:
PLESK_ERROR: Cannot remove the IP address 2001:db8:f61:a1ff:0:0:0:80 because it is the last IP address present on a network interface.
OR
PLESK_ERROR: Cannot remove IP, used by DNS template
-
No websites are assigned on the IP address from the error.
Cause
Product issue:
-
#PPPM-3818 "Removing an IPv6 IP address registered in Plesk no longer fails with the “Cannot remove the IP address” error."
Fixed in:- Plesk Obsidian 18 February 2020
Resolution
Workaround
Use one of the following workarounds:
-
Make sure that there is no subscriptions or reseller accounts assigned to this IP address in Plesk > Tools & Settings > IP Addresses (both Resellers and Sites values should be 0).
-
Open
/usr/local/psa/admin/conf/panel.ini
on Linux or%plesk_dir%\admin\conf\panel.ini
on Windows and add the following line:CONFIG_TEXT: [ip]blacklist="IP_addresses_to_be_hidden"
-
Open Tools & Settings > IP Addresses and click Reread IP button:
Note: Hiding an IP address already assigned to one or more subscriptions will result in the
The IP address is already used for hosting
error. The IP address will be marked asblacklisted
in Tools & Settings > IP Addresses , but will be available in the Plesk interface.
-
Log into Plesk and make sure that there is no subscriptions or reseller accounts assigned to this IP address in Plesk > Tools & Settings > IP Addresses (both Resellers and Sites values should be 0).
-
Log into the server via SSH and remove the IP address manually from the network interface by means of the operating system installed on the server for example using the command below (where
203.0.113.2
is the affected IP address andeth0
the network interface name):# ip addr del 203.0.113.2/24 dev eth0
Note: Before removing an IP address double check that there is no websites assigned to this IP address in Plesk. If IP address is not in use, in Plesk > Tools & Settings > IP Addresses values "Resellers" and "Sites" of this IP address will be "0".
-
Go to Plesk > Tools & Settings > IP Addresses and click Reread IP button:
-
Select IP address that needs to be removed (it will be marked as broken ) and click Remove button:
Comments
2 comments
I can´t remove the ipv6. i get this message:
Can not be deleted because it is being used by the DNS zone of one or more domains.
How can i check with domain is it?
@Luis Zubeldia
check this article
https://support.plesk.com/hc/en-us/articles/213918785-Unable-to-remove-an-IP-address-from-Tools-Settings-IP-Address-IP-address-cannot-be-removed-because-it-is-used-by-DNS-zone-of-one-or-more-domains
Please sign in to leave a comment.