{"id":1194,"date":"2021-07-20T06:03:01","date_gmt":"2021-07-20T06:03:01","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=1194"},"modified":"2021-07-20T06:03:01","modified_gmt":"2021-07-20T06:03:01","slug":"ec2-associate-static-public-ip","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/","title":{"rendered":"How can I assign my EC2 Windows or Linux instance a static public IP address?"},"content":{"rendered":"<p>Every time I stop and start my Amazon Elastic Compute Cloud (Amazon EC2) instance, the auto-assigned public IP address connected with it changes. How can I provide my Windows or Linux EC2 instance a permanent public IP address that doesn&#8217;t change when I stop and start the instance?<\/p>\n<p><strong>What is the meaning of an elastic IP address?<\/strong><\/p>\n<p>A static public IPv4 address associated with your AWS account in a certain Region is known as an Elastic IP address. An Elastic IP address is kept after you stop and relaunch your instance in a virtual private cloud, unlike an auto-assigned public IP address (VPC).<\/p>\n<p>You can use one of the following methods to associate an Elastic IP address with your EC2 instance at any time.The Amazon EC2 console<\/p>\n<ul>\n<li>AWS Tools for Windows PowerShell<\/li>\n<li>AWS Command Line Interface (AWS CLI)<\/li>\n<\/ul>\n<p><strong>When working with static IP addresses, keep the following in mind:\u00a0<\/strong><\/p>\n<ul>\n<li>If you&#8217;re seeing issues when running AWS CLI commands, make sure you&#8217;re running the latest recent version.<\/li>\n<li>Using auto-assigned public IP address, you can&#8217;t keep or reserve the instance&#8217;s existing public IP address.<\/li>\n<li>An auto-assigned public IP address cannot be converted to an Elastic IP address.<\/li>\n<li>AWS accounts have a default limit of 5 Elastic IP addresses per Region. See Elastic IP address limit for additional information on limits and how to request an increase.<\/li>\n<\/ul>\n<p><strong>Follow these procedures to assign and associate an Elastic IP address to your EC2 Windows or Linux instance:<\/strong><\/p>\n<ul>\n<li>Choose an Elastic IP address from Amazon&#8217;s public IPv4 address pool or a custom IP address pool that you add to your AWS account.<\/li>\n<li>Assign a running instance to the Elastic IP address.<\/li>\n<\/ul>\n<p>At <strong>Velan<\/strong>, our server support engineers can help to configure Elastic IPs on your AWS EC2servers.\u00a0If you are interested in our service, please fill the Quick connect form to <a href=\"https:\/\/www.velaninfo.com\/contact\"><strong>get in touch with us<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every time I stop and start my Amazon Elastic Compute Cloud (Amazon EC2) instance, the auto-assigned public IP address connected with it changes. How can I provide my Windows or Linux EC2 instance a permanent public IP address that doesn&#8217;t change when I stop and start the instance? What is the meaning of an elastic&#8230;<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-1194","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-aws","Categories_tech_tip-cloud","Categories_tech_tip-ec2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Associate a Static Public IP Address with your Linux EC2 Instance<\/title>\n<meta name=\"description\" content=\"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can I assign my EC2 Windows or Linux instance a static public IP address?\" \/>\n<meta property=\"og:description\" content=\"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/ec2-associate-static-public-ip\\\/\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/ec2-associate-static-public-ip\\\/\",\"name\":\"Associate a Static Public IP Address with your Linux EC2 Instance\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\"},\"datePublished\":\"2021-07-20T06:03:01+00:00\",\"description\":\"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/ec2-associate-static-public-ip\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/ec2-associate-static-public-ip\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/ec2-associate-static-public-ip\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/techtips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How can I assign my EC2 Windows or Linux instance a static public IP address?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/#website\",\"url\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.velaninfo.com\\\/rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Associate a Static Public IP Address with your Linux EC2 Instance","description":"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/","og_locale":"en_US","og_type":"article","og_title":"How can I assign my EC2 Windows or Linux instance a static public IP address?","og_description":"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/","og_site_name":"Velan","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/","name":"Associate a Static Public IP Address with your Linux EC2 Instance","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2021-07-20T06:03:01+00:00","description":"Explains how to find the private and public static IP address of AWS EC2 or Lightsail instance using the Linux command line.","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/ec2-associate-static-public-ip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How can I assign my EC2 Windows or Linux instance a static public IP address?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=1194"}],"version-history":[{"count":1,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1194\/revisions"}],"predecessor-version":[{"id":1195,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/1194\/revisions\/1195"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=1194"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}