--- title: "unassignSecondaryIps" slug: "cli-vserver-networkinterface-unassignsecondaryips" tags: ["VPC", "Server"] updated: 2026-09-17T10:08:33Z published: 2026-09-17T10:08:33Z canonical: "cli.ncloud-docs.com/cli-vserver-networkinterface-unassignsecondaryips" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # unassignSecondaryIps Available in VPC Remove a secondary IP assigned to a network interface. ## Syntax The `unassignSecondaryIps` syntax is as follows: ``` ./ncloud vserver unassignSecondaryIps \ --networkInterfaceNo \ --secondaryIpList \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `unassignSecondaryIps`. ### Required options The following options are required for `unassignSecondaryIps`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--networkInterfaceNo` | String | Required | Network interface number - See [getNetworkInterfaceList](/docs/en/cli-vserver-networkinterface-getnetworkinterfacelist). | | `--secondaryIpList` | List | Required | Secondary IP address list - See [getNetworkInterfaceList](/docs/en/cli-vserver-networkinterface-getnetworkinterfacelist). - You can enter multiple items separated by spaces. (e.g., `--secondaryIpList 192.168.0.1 192.168.0.2`) | ### Common options For information about the options common to all `vserver` subcommands, see [Server (VPC) options](/docs/en/cli-vserver#%EC%98%B5%EC%85%98). ## Examples If the request to remove the secondary IP address from the network interface is successful, the network interface's configuration information and the list of remaining secondary IP addresses are returned. ### Command The command example is as follows: ``` ./ncloud vserver unassignSecondaryIps \ --networkInterfaceNo 56789012 \ --secondaryIpList 192.0.2.13 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "unassignSecondaryIpsResponse": { "totalRows": 1, "networkInterfaceList": [ { "networkInterfaceNo": "56789012", "networkInterfaceName": "test-nic-01", "subnetNo": "23456789", "deleteOnTermination": false, "isDefault": false, "deviceName": "eth1", "networkInterfaceStatus": { "code": "SET", "codeName": "Configuring" }, "instanceType": { "code": "VSVR", "codeName": "Server (VPC)" }, "instanceNo": "34567890", "ip": "192.0.2.10", "macAddress": "F2:20:AF:00:00:01", "enableFlowLog": false, "accessControlGroupNoList": [ "67890123" ], "networkInterfaceDescription": "Test network interface", "secondaryIpList": [ "192.0.2.14", "192.0.2.11" ] } ], "requestId": "28901234-5678-9012-2345-890123456789", "returnCode": "0", "returnMessage": "success" } } ```