Euca2ools Guide / EC2-Compatible Commands |
Associates an elastic IP address with an instance. This assumes that the address you supplied has already been allocated with the euca-allocate-address command.
euca-associate-address -i instance_id [-n interface] [-a allocation] [-p address] [--allow-reallocation] ip
Option | Description | Required |
---|---|---|
-i,--instance | Unique identifier for a running instance to associate the address with. | Yes |
-n,--network-interface interface | (VPC only) The network interface to associate with the address. | Yes, if VPC |
-a,--allocation-id alloc | (VPC only) The VPC allocation ID. | No |
-p,--private-ip-address address | (VPC only) The private address to associate with the address being associated in the VPC. This defaults to the primary private IP address. | No |
--allow-reassociation | (VPC only) Allow the address to be associated even if it is already associated with another instance. | No |
ip | Elastic IP address to associate | Yes |
Option | Description |
---|---|
--show-empty-fields | Show empty fields as "(nil)". |
--region user@region | Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints. |
-U,--url url | URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean. |
-I,--access-key-id key_id | User's access key ID. |
-S,--secret-key secret_key | User's secret key. |
--security-token token | User's security token. |
--debug | Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools. |
--debugger | Enable interactive debugger on error. |
-h,--help | Display the manual page for the command. |
--version | Display the version of this tool. |
euca-associate-address -i i-3C66428A 86.75.30.9 ADDRESS 86.75.30.9 i-3C66428A