{"id":1259,"date":"2018-06-18T08:00:16","date_gmt":"2018-06-17T23:00:16","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1259"},"modified":"2021-09-30T08:58:40","modified_gmt":"2021-09-29T23:58:40","slug":"get-aws-elastic-ip","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-elastic-ip","title":{"rendered":"AWS &#8211; Elastic IP\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>Elastic IP\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AWSEC2\/latest\/UserGuide\/elastic-ip-addresses-eip.html\" target=\"_blank\" rel=\"noopener\"><strong>Elastic IP<\/strong><\/a><br \/>\nElastic IP \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u52d5\u7684\u306a\u30af\u30e9\u30a6\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u9759\u7684 IPv4 \u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002Elastic IP \u30a2\u30c9\u30ec\u30b9\u306f\u3001AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002Elastic IP \u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30c9\u30ec\u30b9\u3092\u30a2\u30ab\u30a6\u30f3\u30c8\u5185\u306e\u5225\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8fc5\u901f\u306b\u518d\u30de\u30c3\u30d7\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3084\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a8\u30e9\u30fc\u3092\u96a0\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Elastic IP \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30d1\u30d6\u30ea\u30c3\u30af IPv4 \u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30d1\u30d6\u30ea\u30c3\u30af IPv4 \u30a2\u30c9\u30ec\u30b9\u304c\u306a\u3044\u5834\u5408\u3001Elastic IP \u30a2\u30c9\u30ec\u30b9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u95a2\u9023\u4ed8\u3051\u3066\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3068\u306e\u901a\u4fe1\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u306a\u3069)\u3002<\/p>\n<p>\u73fe\u5728\u3001IPv6 \u306b\u5bfe\u3059\u308b Elastic IP \u30a2\u30c9\u30ec\u30b9\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>aws ec2 describe-addresses<\/code><\/pre>\n<\/div>\n<p><strong>TEXT<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>ADDRESSES eipalloc-5a5a366* eipassoc-072f713* vpc i-07acc4012b5efb3a* eni-4b459c7* 987654321000 10.0.0.* 52.69.124.*<\/code><\/pre>\n<\/div>\n<p><strong>TABLE<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>------------------------------------------------------\r\n|                  DescribeAddresses                 |\r\n+----------------------------------------------------+\r\n||                     Addresses                    ||\r\n|+--------------------------+-----------------------+|\r\n||  AllocationId            |  eipalloc-5a5a366*    ||\r\n||  AssociationId           |  eipassoc-072f713*    ||\r\n||  Domain                  |  vpc                  ||\r\n||  InstanceId              |  i-07acc4012b5efb3a*  ||\r\n||  NetworkInterfaceId      |  eni-4b459c7*         ||\r\n||  NetworkInterfaceOwnerId |  987654321000         ||\r\n||  PrivateIpAddress        |  10.0.0.*             ||\r\n||  PublicIp                |  52.69.124.*          ||\r\n|+--------------------------+-----------------------+|\r\n<\/code><\/pre>\n<\/div>\n<p><strong>JSON<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>{\r\n    \"Addresses\": [\r\n        {\r\n            \"Domain\": \"vpc\",\r\n            \"InstanceId\": \"i-07acc4012b5efb3a*\",\r\n            \"NetworkInterfaceId\": \"eni-4b459c7*\",\r\n            \"AssociationId\": \"eipassoc-072f713*\",\r\n            \"NetworkInterfaceOwnerId\": \"987654321000\",\r\n            \"PublicIp\": \"52.69.124.*\",\r\n            \"AllocationId\": \"eipalloc-5a5a366*\",\r\n            \"PrivateIpAddress\": \"10.0.0.*\"\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u51fa\u529b\u7d50\u679c\u304b\u3089\u4ee5\u4e0b\u306e\u9805\u76ee\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse;\" border=\"1\">\n<tbody>\n<tr style=\"height: 25px;\">\n<th style=\"width: 25%; height: 25px;\">\u9805\u76ee<\/th>\n<th style=\"width: 25%; height: 25px;\">\u5f62\u5f0f<\/th>\n<th style=\"width: 25%; height: 25px;\">\u8aac\u660e<\/th>\n<th style=\"width: 25%; height: 25px;\">\u5bfe\u5fdc\u7b87\u6240<\/th>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 25%; height: 49px;\">InstanceId<\/td>\n<td style=\"width: 25%; height: 49px;\">string<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30a2\u30c9\u30ec\u30b9\u304c\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eID\uff08\u5b58\u5728\u3059\u308b\u5834\u5408\uff09\u3002<\/td>\n<td style=\"width: 25%; height: 49px;\">\u95a2\u9023ID<\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 25%; height: 25px;\">PublicIp<\/td>\n<td style=\"width: 25%; height: 25px;\">string<\/td>\n<td style=\"width: 25%; height: 25px;\">Elastic IP\u30a2\u30c9\u30ec\u30b9\u3002<\/td>\n<td style=\"width: 25%; height: 25px;\">Elastic IP<\/td>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 25%; height: 49px;\">AllocationId<\/td>\n<td style=\"width: 25%; height: 49px;\">string<\/td>\n<td style=\"width: 25%; height: 49px;\">EC2-VPC\u3067\u4f7f\u7528\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u306e\u5272\u308a\u5f53\u3066\u3092\u8868\u3059ID\u3002<\/td>\n<td style=\"width: 25%; height: 49px;\">\u00a0<\/td>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 25%; height: 49px;\">AssociationId<\/td>\n<td style=\"width: 25%; height: 49px;\">string<\/td>\n<td style=\"width: 25%; height: 49px;\">VPC\u5185\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u30a2\u30c9\u30ec\u30b9\u306e\u95a2\u9023\u4ed8\u3051\u3092\u8868\u3059ID\u3002<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3ID<\/td>\n<\/tr>\n<tr style=\"height: 73px;\">\n<td style=\"width: 25%; height: 73px;\">Domain<\/td>\n<td style=\"width: 25%; height: 73px;\">string<\/td>\n<td style=\"width: 25%; height: 73px;\">\u3053\u306e\u30a8\u30e9\u30b9\u30c6\u30a3\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u304cEC2-Classic\uff08\u6a19\u6e96\uff09\u307e\u305f\u306fVPC\uff08vpc\uff09\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 25%; height: 73px;\">\u30b9\u30b3\u30fc\u30d7<\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 25%; height: 25px;\">NetworkInterfaceId<\/td>\n<td style=\"width: 25%; height: 25px;\">string<\/td>\n<td style=\"width: 25%; height: 25px;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306eID\u3002<\/td>\n<td style=\"width: 25%; height: 25px;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9ID<\/td>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 25%; height: 49px;\">NetworkInterfaceOwnerId<\/td>\n<td style=\"width: 25%; height: 49px;\">string<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u6240\u6709\u3059\u308bAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306eID\u3002<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u6240\u6709\u8005ID<\/td>\n<\/tr>\n<tr style=\"height: 49px;\">\n<td style=\"width: 25%; height: 49px;\">PrivateIpAddress<\/td>\n<td style=\"width: 25%; height: 49px;\">string<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30a8\u30e9\u30b9\u30c6\u30a3\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u3002<\/td>\n<td style=\"width: 25%; height: 49px;\">\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4><strong>\u88dc\u8db3<\/strong><\/h4>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Elastic IP\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 Elastic IP Elastic IP \u30a2\u30c9\u30ec\u30b9\u306f\u3001\u52d5\u7684\u306a\u30af\u30e9\u30a6\u30c9\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u9759\u7684 IPv4 \u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002Elasti&#8230;<\/p>\n","protected":false},"author":3,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[30,92,82],"class_list":["post-1259","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli","tag-elastic-ip","tag-82"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo\/logo-aws.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-kj","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=1259"}],"version-history":[{"count":10,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":2565,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1259\/revisions\/2565"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}