ECLAT-ASSOCADDR

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OUTPUT AND RETURN VALUE
EXAMPLES
SEE ALSO
AUTHORS
BUG REPORTS
COPYRIGHT

NAME

eclat-assocaddr, eclat-associate-address - associate an IP address with an instance

SYNOPSIS

eclat assocaddr [OPTIONS] INSTANCE IP

eclat assocaddr [OPTIONS] INSTANCE ALLOC-ID

eclat assocaddr --help

DESCRIPTION

The assocaddr command associates an Elastic IP address with an non-VPC instance or associates a VPC Elastic IP address with an instance in your VPC.

The first argument is always the ID of the instance to operate upon. The meaning of the second argument depends on the --vpc command line option. If that option is given, the second argument supplies the allocation ID that AWS returned when you allocated the Elastic IP address for use with Amazon VPC. Otherwise, it is the Elastic IP to assign to the non-VPC instance.

OPTIONS

-A, --allow-reassociation

Allows an already associated address to be re-associated with the specified instance (VPC only).

-i, --interface=IFACE

A network interface ID to associate with the instance (vpc only).

-p, --private-address=ADDRESS

Private IP address to associate with the Elastic IP address (vpc only).

-v, --vpc

Assign VPC addresses.

OUTPUT AND RETURN VALUE

The default output format does not display anything if the operation succeeds. Otherwise it prints on the standard error the diagnostic message returned by the Amazon, and returns code 1 to the shell.

The code 2 is returned if eclat is unable to recognize the response.

EXAMPLES

1.
Assign an Elastic IP to the instance:

eclat assocaddr i-2ea64347 192.0.2.1

2.
Associate an IP address with an instance in the VPC:

eclat assocaddr --vpc i-4fd2431a eipalloc-5723d13e

SEE ALSO

eclat(1), eclat-mkaddr(1), eclat-rmaddr(1), eclat-disassaddr(1).

AUTHORS

Sergey Poznyakoff

BUG REPORTS

Report bugs to <bug-eclat@gnu.org.ua>.

COPYRIGHT

Copyright © 2012-2018 Sergey Poznyakoff
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


Manpage server at man.gnu.org.ua.

Powered by mansrv 1.1