Types of IP Addressing in GCP

Lab Details:

  1. This lab walks you through the types of IP addressing in the Google Cloud Platform.

  2. Duration: 60 minutes.

Note: Do not refresh the page after you click Start Lab, wait for a few seconds to get the credentials.
In case while login into Google, if it asks for verification, please enter your mobile number and verify with OTP, Don't worry this Google Account will be deleted after the lab.

What is an IP address:

Just like your Vehicle number gives you an identity to drive your car on roads similarly, IP gives you an identity in the Internet World. IP is Internet Protocol

The IP address is assigned to your computer by your Internet Service Provider (ISP). Since they are the ones giving you access to the Internet, it’s their role to assign an IP address to your computer. Your Internet activity goes through them, and they route it back to you, using your IP address.

IPs are not permanent or physically engraved on your device, it's just a software term. IP may get changed if ISP wants. There are the permanent addresses and are referred to as MAC(Media Access Control) addresses.

Types of IP addresses:

External IP addresses:

An external IP address is an address assigned to you by your ISP (Internet service provider). It is the address through which the Internet and other computers outside your local network use to identify you. You can also often type "IP address" into search engines such as Google to see your IP address.

Internal IP addresses:

The internal IP address is the address that is assigned by your local network router. It generally begins with 192.168.x.x.It is also known as the local IP address. These IP addresses are only seen by other computers in your local network and not by computers connected to an external network, such as the Internet. To know about your Internal IP address, open the terminal/command prompt, search ipconfig, and press enter.

Ephemeral External/Internal IP addresses:

Ephemeral means "changing", the thing that keeps on changing. Ephemeral External/Internal IP in GCP means the IP that is not fixed and keeps on changing. The IP won't change in the middle of a process, while the creation of a VM instance, a particular IP is assigned(ephemeral IP by default) to it, when we stop/suspend the VM for that very moment, google assign that IP to some other VM instance and later when your restart your VM instance, it will be allotted with a different IP address. The advantages of using Ephemeral IP are that it is not costly, you don't have to pay for the IP separately, the cost is included with the VM lifecycle only and the disadvantages of using it is that if your IPs are hardcoded somewhere and you have various dependencies among the services, then often changing of IP will be an overhead for operational time and cost.

Static External IP/Internal IP addresses:

Static means "Permanent". Static External/Internal IP in GCP means the IP that is fixed for a particular resource. While the creation of a VM instance, a particular IP is assigned(ephemeral IP by default) to it, for static IP you have to reserve an IP from VPC networks and then assign it to the VM instance during the creation. There is no effect of stopping/suspending the VM on the static IP. The advantages of using static IP are that IP never gets changed unlike the Ephemeral, so there is no effect on infrastructural dependencies and the disadvantage of using it is that it is not expensive, you have to pay for the IP separately, even if it's not being used.

Lab Tasks:

  1. Creating a VM Instance with an Ephemeral IP address.

  2. Reserving a Static External IP.

  3. Creating a VM Instance with a Static External IP address.



Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses

Open Console