How to assign a static IP address to a new VM instance

0 votes
When I created a new VM instance using compute an ephemeral IP address is assigned to the instance. I want to assign a static IP address to a new VM instance. How do I go about achieving this?
Nov 11, 2019 in GCP by anonymous
• 6,260 points
2,846 views

1 answer to this question.

0 votes

When you create a VM instance, it is automatically assigned an ephemeral external IP address. If you don't want an ephemeral external IP address, you can explicitly assign a static external IP address to the instance instead.

  1. In the GCP Console, go to the VM Instances page.

  2. Click Create instance.

  3. On the Create a new instance page, fill in the properties for your instance.

  4. Expand the Management, security, disks, networking, sole tenancy section.

  5. Click Networking.

  6. Under Network interfaces, click on the default network interface to edit it.

  7. Under the External IP section, select the static external IP address that you reserved from the drop-down menu.

  8. Click Done to finish modifying the default network interface.

  9. Click Create to create the instance.

answered Nov 11, 2019 by anonymous
• 59,230 points

Related Questions In GCP

0 votes
1 answer

How to create a regional static IP address in GCP?

Hi@akhtar, The regional IP addresses can be attached to ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,460 points
1,046 views
0 votes
1 answer

How to create a global static IP address in GCP?

Hi@akhtar, Global IP addresses can only be attached to ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,460 points
1,361 views
0 votes
1 answer

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 59,230 points
2,727 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
2,896 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,243 views
0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
1,845 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP