Reserving Static IP on Google Cloud
When we create a new instance, the external IP address gets assign to your created VM Instance, that external IP assigned to your created VM Instance is not static, it gets change after the session expires. Making External IP assigned to your created VM instance to static is important when particular service is running on that instance and that service is receiving data from clients. In order to receive data from clients or users, the IP address of your VM instance should be static. For example, MQTT service (MQTT Broker) is running on Your created VM instance and you want to send data to MQTT broker. In order to send data to MQTT broker, you need an IP address of instance which is nothing but the host name. If IP address is of instance on which broker is installed is not static then every time while posting or sending data to a broker, you need to change the host name or IP address. To avoid this it’s better to configure your VM instance IP address as static. If you are not receiving any kind of data from user or client on created VM Instance then no need to configure your VM instance’s External IP address as Static. So here we will see how to reserve external IP address as Static IP address on Google Cloud.
Reserve static IP address on Google Cloud :
Please follow the following steps to reserve a static IP address on Google Cloud.
1)To reserve your external IP as static IP address on googel cloud, please click on
Navigation menu-> PRODUCTS -> NETWORKING -> VPC network -> External IP addresses
2) Click on RESERVE STATIC ADDRESS
3)Enter following fields:
Name: Enter name for reserving External IP address. Name can be anything but it can have only lowercase letters , hyphens and numbers.
IP Version: Select IPv4 for VM instance . Select IPv6 for for SSL proxy, or TCP proxy load balancer
Type: Select either Regional or Global . If you are reserving a static IP address for VM instance or network load balancer then select Regional. If you are reserving a static IP address for SSL proxy, or TCP proxy load balancer, then select Global.
Region: If you have chosen Regional then select region here which you have chosen while creating VM instance.
Attached to: Select name of your VM here for which you have to reserve an IP address.
Reserve: Click on reserve for reserving IP address.
4) Congrats you have successfully reserved your External IP address as static . Your external IP address before configuring static and after configuring static may or may not be same.
How many External IP address can we reserve?
Google cloud allows us to reserve maximum 3 external IP addresses.
How to reserve multiple IP addresses on Google cloud?
Google allows us to reserve only one external IP address per zone if you want to reserve multiple external IP addresses for different instances, then each instance should be from the different zone (which we select while creating a new instance)
Thank you for the great article
Thanks for the excellent post
This is truly helpful, thanks.
This is truly helpful, thanks.
This is really helpful, thanks.
Attractive portion of content. I simply stumbled upon your website and in accession capital to say that I
get in fact enjoyed account your weblog posts.
Anyway I’ll be subscribing on your feeds and
even I success you access consistently quickly.
Nice post. I used to be checking continuously this weblog and I am impressed!
Extremely useful info specially the last part 🙂 I deal with such information much. I used to be seeking this
certain info for a long time. Thank you and good luck.