Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add 2nd internal/private ip address to google cloud vm instance

How can I add a 2nd internal/private ip address to a google cloud vm instance?

like image 410
conlustro Avatar asked Jul 02 '14 08:07

conlustro


People also ask

Can a VM have multiple IP addresses?

An Azure Virtual Machine (VM) has one or more network interfaces (NIC) attached to it. Any NIC can have one or more static or dynamic public and private IP addresses assigned to it.

How do I add a second IP?

Open Network (and Dial-up) Connections.Click Properties. Click Internet Protocol (TCP/IP) then click Properties. Click Advanced. Type in the new IP address then click Add.

How does GCP VM connect to internal IP?

To connect to an instance without an external IP address, use the gcloud compute ssh command with the --internal-ip flag. In the Google Cloud console, go to the VM Instances page and find the internal IP address for the instance that you want to connect to. Connect to the instance.


1 Answers

You can configure a static network address, where you can combine routes and an the 'can_ip_forward' ability. Take a look at this page https://developers.google.com/compute/docs/instances-and-network#staticnetworkaddress

like image 109
Marilu Avatar answered Nov 15 '22 16:11

Marilu