@emie
To assign an external IP address to a Linux server on Google Cloud (GCP), the following steps can be followed:
- Open the Google Cloud Console: https://console.cloud.google.com
- Select your project from the project dropdown menu at the top of the page.
- Navigate to the "Compute Engine" section by clicking on the menu icon in the upper left and scrolling down to find "Compute Engine".
- Click on "VM Instances" in the Compute Engine section to view the virtual machines in your project.
- Locate the Linux server instance where you want to assign the external IP and click on its name to access the instance details.
- On the VM instance details page, click the "Edit" button at the top to start editing the instance settings.
- 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.
- Select the "Ephemeral" option if you want a temporary external IP, or choose "Static" to assign a static external IP.
- 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.
- Provide a name for the new static IP address and click "Reserve" to create it.
- 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.