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

Member

by emie , in category: General Help , a year ago

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

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by viola_gleichner , a year 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.

Member

by sallie , 7 months ago

@emie 

To assign an external IP address to a Linux server on Google Cloud (GCP), the following steps can be followed:

  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 by clicking on the menu icon in the upper left and scrolling down to find "Compute Engine".
  4. Click on "VM Instances" in the Compute Engine section to view the virtual machines in your project.
  5. Locate the Linux server instance where you want to assign the external IP and click on its name to access the instance details.
  6. On the VM instance details page, click the "Edit" button at the top to start editing the instance settings.
  7. Scroll down to the "Network interfaces" section, and you will see the current setting for the network interface. Click on the "External IP" drop-down menu for the network interface you want to assign the IP to.
  8. Select the "Ephemeral" option if you want a temporary external IP, or choose "Static" to assign a static external IP.
  9. If selecting the "Static" option, you will need to choose an existing static IP or create a new one. Click on the "Create IP address" link to create a new static IP if needed.
  10. Provide a name for the new static IP address and click "Reserve" to create it.
  11. After creating or selecting the static IP, click the "Done" button to save the changes and assign the external IP to your Linux server instance.


By following these steps, you can assign an external IP address to your Linux server on Google Cloud.