Detaching a public IP address from a VM
Written by
If you previously linked a public IP address to a VM, you can disassociate it.
Management console
CLI
- In the management console, select the folder the VM belongs to.
- Select Compute Cloud.
- Select the VM.
- Under Network interface, in the top right-hand corner, click and select Disassociate public IP address.
- In the window that opens, click Delete.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To detach a public IP address from a VM instance, run the CLI command below:
yc compute instance remove-one-to-one-nat
--id=<instance_ID>
--network-interface-index=<instance_network_interface_index>
Where:
id
: VM instance ID. You can get a list of IDs of instances in a folder using the CLI commandyc compute instance list
.network-interface-index
: VM instance's network interface index. By default:0
.
For more information about the yc compute instance remove-one-to-one-nat
command, see the CLI reference.