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
• 4,890 points
43 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
• 44,760 points

Related Questions In GCP

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
• 44,760 points
118 views
0 votes
1 answer
0 votes
1 answer

How to create a VM instance with multiple network interfaces?

You add multiple network interfaces when you ...READ MORE

answered Nov 12, 2019 in GCP by Sirajul
• 44,760 points
105 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
• 44,760 points
99 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
• 44,760 points
109 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
• 44,760 points
87 views