How do I assign an external IP to a Linux server on Google Cloud (GCloud)?

Member

by emie , in category: General Help , 5 months ago

How do I assign an external IP to a Linux server on Google Cloud (GCloud)?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by viola_gleichner , 4 months ago

@emie 

To assign an external IP to a Linux server on Google Cloud (GCloud), you can follow these steps:

  1. Open the Google Cloud Console: https://console.cloud.google.com/
  2. Select your project from the project dropdown menu at the top of the page.
  3. Navigate to the Compute Engine section.
  4. Click on "VM Instances" in the left sidebar to view your virtual machines.
  5. Locate the Linux server you want to assign an external IP to and click on its name.
  6. On the VM instance details page, click the "Edit" button at the top.
  7. Scroll down to the "Network interfaces" section and click on the network interface you want to assign an external IP to.
  8. On the right side, click on the "Ephemeral external IP" dropdown.
  9. Select the "Static" option from the dropdown.
  10. In the "Create IP address" dialog, provide a Name for the static IP.
  11. Optionally, you can specify a description and reserve the IP by selecting the respective options.
  12. Click the "Reserve" button to create the new static IP address.
  13. After creating the static IP, click the "Done" button on the VM instance details page to save the changes.


The external IP will now be assigned to your Linux server on Google Cloud.