{"id":1225,"date":"2022-02-13T12:14:02","date_gmt":"2022-02-13T17:14:02","guid":{"rendered":"http:\/\/xfloyd.net\/blog\/?p=1225"},"modified":"2022-02-13T12:14:02","modified_gmt":"2022-02-13T17:14:02","slug":"gcp-how-to-assign-a-static-ip-address-to-a-new-vm-instance","status":"publish","type":"post","link":"https:\/\/xfloyd.net\/blog\/?p=1225","title":{"rendered":"GCP How to assign a static IP address to a new VM instance"},"content":{"rendered":"\n<p>When you create a VM instance, it is automatically assigned an ephemeral external IP address. If you don&#8217;t want an ephemeral external IP address, you can explicitly assign a static external IP address to the instance instead.<\/p>\n\n<ol>\n\n<li>\n\n<p>In the GCP Console, go to the&nbsp;<strong>VM Instances<\/strong>&nbsp;page.<\/p><\/li>\n\n<li>\n\n<p>Click&nbsp;<strong>Create instance<\/strong>.<\/p><\/li>\n\n<li>\n\n<p>On the&nbsp;<strong>Create a new instance<\/strong>&nbsp;page, fill in the properties for your instance.<\/p><\/li>\n\n<li>\n\n<p>Expand the&nbsp;<strong>Management, security, disks, networking, sole tenancy<\/strong>&nbsp;section.<\/p><\/li>\n\n<li>\n\n<p>Click&nbsp;<strong>Networking<\/strong>.<\/p><\/li>\n\n<li>\n\n<p>Under&nbsp;<strong>Network interfaces<\/strong>, click on the default network interface to edit it.<\/p><\/li>\n\n<li>\n\n<p>Under the&nbsp;<strong>External IP<\/strong>&nbsp;section, select the static external IP address that you reserved from the drop-down menu.<\/p><\/li>\n\n<li>\n\n<p>Click&nbsp;<strong>Done<\/strong>&nbsp;to finish modifying the default network interface.<\/p><\/li>\n\n<li>\n\n<p>Click&nbsp;<strong>Create<\/strong>&nbsp;to create the instance.<\/p><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>When you create a VM instance, it is automatically assigned an ephemeral external IP address. If you don&#8217;t want an ephemeral external IP address, you can explicitly assign a static external IP address to the instance instead. In the GCP Console, go to the&nbsp;VM Instances&nbsp;page. Click&nbsp;Create instance. On the&nbsp;Create a new instance&nbsp;page, fill in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"_links":{"self":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1225"}],"collection":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1225"}],"version-history":[{"count":2,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1225\/revisions"}],"predecessor-version":[{"id":1227,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1225\/revisions\/1227"}],"wp:attachment":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}