summaryrefslogtreecommitdiffabout
path: root/doc/eclat-assocaddr.1
blob: 985b1a8d91320d71a11dd6e148a3e2f688caf885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.\" This file is part of Eclat -*- nroff -*-
.\" Copyright (C) 2012-2018 Sergey Poznyakoff
.\"
.\" Eclat is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 3, or (at your option)
.\" any later version.
.\"
.\" Eclat is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with Eclat.  If not, see <http://www.gnu.org/licenses/>.
.TH ECLAT-ASSOCADDR 1 "January 26, 2015" "ECLAT" "Eclat User Reference"
.SH NAME
eclat-assocaddr, eclat-associate-address \- associate an IP address with an instance
.SH SYNOPSIS
.nh
.na
\fBeclat assocaddr\fR [\fIOPTIONS\fR] \fIINSTANCE\fR \fIIP\fR
.PP
\fBeclat assocaddr\fR [\fIOPTIONS\fR] \fIINSTANCE\fR \fIALLOC\-ID\fR
.PP
\fBeclat assocaddr\fR \fB\-\-help\fR
.ad
.hy
.SH DESCRIPTION
The
.B 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.
.PP
The first argument is always the ID of the instance to operate upon.
The meaning of the second argument depends on the \fB\-\-vpc\fR 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.
.SH OPTIONS
.TP
\fB\-A\fR, \fB\-\-allow\-reassociation\fR
Allows an already associated address to be re-associated with the
specified instance (VPC only).
.TP
\fB\-i\fR, \fB\-\-interface\fR=\fIIFACE\fR
A network interface ID to associate with the instance (vpc only).
.TP
\fB\-p\fR, \fB\-\-private\-address\fR=\fIADDRESS\fR
Private IP address to associate with the Elastic IP address (vpc
only).
.TP
\fB\-v\fR, \fB\-\-vpc\fR
Assign VPC addresses.
.SH "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.
.PP
The code 2 is returned if
.B eclat
is unable to recognize the response.
.SH EXAMPLES
.SS 1.
Assign an Elastic IP to the instance:
.PP
.EX
eclat assocaddr i\-2ea64347 192.0.2.1
.EE
.SS 2.
Associate an IP address with an instance in the VPC:
.PP
.EX
eclat assocaddr \-\-vpc i\-4fd2431a eipalloc\-5723d13e
.EE
.SH "SEE ALSO"
.BR eclat (1),
.BR eclat\-mkaddr (1),
.BR eclat\-rmaddr (1),
.BR eclat\-disassaddr (1).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
Report bugs to <bug\-eclat@gnu.org.ua>.
.SH COPYRIGHT
Copyright \(co 2012-2015 Sergey Poznyakoff
.br
.na
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
.br
.ad
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.\" Local variables:
.\" eval: (add-hook 'write-file-hooks 'time-stamp)
.\" time-stamp-start: ".TH [A-Z_][A-Z0-9_.\\-]* [0-9] \""
.\" time-stamp-format: "%:B %:d, %:y"
.\" time-stamp-end: "\""
.\" time-stamp-line-limit: 20
.\" end:

Return to:

Send suggestions and report system problems to the System administrator.