0% found this document useful (0 votes)
20 views

Enabling Static IP To VM in GCP

Uploaded by

Vivek Nambiar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Enabling Static IP To VM in GCP

Uploaded by

Vivek Nambiar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Udhayakumar M

Static IP:

Static IP addresses are fixed that are manually assigned to a system device. It was the initial
technique of assigning IP addresses to network devices. On the network configuration page,
the network administrator manually inputs the IP address for every system. In addition, the
administrator should specify data like the subnet mask and default gateway. Additionally,
this process had to be carried out on all of the network's devices. As a result, it is complex to
allocate the IP addresses to an extensive network of devices.

If your computer is hosting a web server, its IP address is what identifies it to the rest of the
Internet. A computer on the Internet can have a static IP address, which means it stays the
same over time, or a dynamic IP address, which means the address can change over time.

Steps to attach static IP to a VM:

1.Login to our GCP console [https://console.cloud.google.com]


2.Create a VM or use your existing VM to attach static IP

3. Once the VM is successfully created you can able to see 2 IP’s in your console

3.1 – Internal IP -> Private IP


Internal IP [Private IP remains same it will not change]

3.2 – External IP -> Public IP

Dynamic IP addresses can change over time as devices connect and disconnect from the
network. By default, External IP is always dynamic, It keep on changing until we make it as
static also this is additionally chargeable.

4. How to enable static IP to my VM?


 Go to VPC network service in GCP console
 Click on external IP addresses

 Ephemeral -> Dynamic IP


 Click on “promote to Static IP” address to make the dynamic public ip to static IP


 Provide the IP details like name of the IP and description like below


 Click on RESERVE to allocate the Static IP to the server


Difference between Static and Dynamic IP:

Features Static IP address Dynamic IP address

Definition It is a permanent numeric It is a temporary IP address allocated to a


address that is manually issued system when it connects to a network.
to a network device.

Provider It is provided by Internet Service It is provided by DHCP (Dynamic Host


Provider (ISP). Configuration Protocol).

Changes It doesn't change with time. It may be changed at any time.

Device Devices may be traced easily. Devices may be difficult to trace.


tracking

Cost It is expensive to utilize and It is less expensive to utilize and maintain.


maintain.

Security It is less secure than the dynamic It offers high security.


IP address.

Designation It is complex to assign and It is much easy to assign and reassign.


reassign.

Stability It is highly stable. It is less stable.

Usage These are appropriate for Dynamic IP addresses are appropriate for a
dedicated services like FTP, mail, large network that needs an internet
and VPN servers. connection for all devices.

**EOD**

You might also like