# Cloud Networking

VPC : Virtual Private Cloud

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FlfX2wYuJfwcB5khZqGVr%2Fimage.png?alt=media&#x26;token=4ea2a8a9-8cb8-45b9-aa37-d6d8a3b0db7b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2Fm0ugwNrxabPjuPyKp4Aj%2Fimage.png?alt=media&#x26;token=3fe34b0d-13ad-454a-b97a-1c415159bf0c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FVUe8Gr4xXPMUfRtsZALQ%2Fimage.png?alt=media&#x26;token=4b56113a-3126-4164-85a8-676b21721500" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FoG8eFflOhZjknMoTZrlh%2Fimage.png?alt=media&#x26;token=4b55b691-e6c7-4e6a-9373-4d6a8cb52504" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FLMgcWK6ZLIYxGsoSiUpk%2Fimage.png?alt=media&#x26;token=b6fc461e-1de8-4b0d-8f43-39bc1e7680ba" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FWCxH6GfCgXzqfjUwDM0z%2Fimage.png?alt=media&#x26;token=60ab0dda-b8c0-4c29-b26f-0cdf676ce11d" alt=""><figcaption></figcaption></figure>

In Google Cloud each virtual machine can have two IP addresses assigned.&#x20;

* One of them is an internal IP address which is going to be assigned via DHCP internally. Every VM that starts up and any service that depends on virtual machines gets an internal IP address. An example of such services are App Engine and Google Kubernetes Engine which are explored in other courses. When you create a VM in Google Cloud, it's symbolic name is registered with an internal DNS service that translates the name to an internal IP address. The DNS is scoped to the network, so it can translate web URLs and VM names of hosts in the same network. But it can't translate host names of from VMs in a different network.&#x20;
* The other IP address is the external IP address. But this one's optional. You can assign an external IP address if your device or machine is externally facing. That external IP address can be assigned from a pool making it ephemeral or it can be assigned from a reserved external IP address making it static. If you reserve a static external IP address and do not assign it to a resource such as a VM instance or a forwarding rule, you are charged at a higher rate than for static and ephemeral external IP addresses that are in use. You can use your own publicly routable IP address prefixes as Google Cloud external IP addresses and advertise them on the Internet. In order to be eligible, you must own and bring a slash 24 block or large

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FOh6JE57eMqtO9mdTCtxK%2Fimage.png?alt=media&#x26;token=ec4281c9-15d0-43a8-8311-4b5358bc574f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2Fj9H6EscuOe5oz0411Bp6%2Fimage.png?alt=media&#x26;token=4286a2a5-752a-40e8-8899-90e60276cc46" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FDZFSwDVBFrWrLdLwIHAN%2Fimage.png?alt=media&#x26;token=febc4b0b-c35b-43c8-9355-0675636d90a2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FmI1KUWgz3cT1cWwuHY8Q%2Fimage.png?alt=media&#x26;token=b2f19f48-b149-436b-95d0-be96f2b85358" alt=""><figcaption></figcaption></figure>

Every network has:

* Routes that let instances in a network send traffic directly to each other
* A default route that directs packets to destinations that are outside the network

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FPyzDrScuf3zR0iAPPbaL%2Fimage.png?alt=media&#x26;token=e331708e-80ae-4bbb-961b-9c6450110aaa" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2Fux1hSumpPIoknjEc4tl3%2Fimage.png?alt=media&#x26;token=897b9a10-913d-4319-a94e-29e6f52b205c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FlTIIwmSJmMcrhNv4X3up%2Fimage.png?alt=media&#x26;token=2022da97-f387-4a91-9764-cb9ab2963bbc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FyqPITFnX9wMgoYDpc6oB%2Fimage.png?alt=media&#x26;token=8983ce7a-0c73-454a-9fd7-7cd9277cda26" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FvOWAZ8Qs9NxEx1GIYrtD%2Fimage.png?alt=media&#x26;token=e2f58e41-a158-4ade-99b1-1b3997f76cad" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2F0QWZdmHoAIN6dSvnELnP%2Fimage.png?alt=media&#x26;token=ef3c1440-2c5b-42de-a91b-4b20132e0f5d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://473782116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlTUR0kU-pvc2XyvuDJ%2Fuploads%2FQTgl1ncgElHYxAzniI4W%2Fimage.png?alt=media&#x26;token=4c4e1fc9-fb27-442b-b2ae-574dbe582a6a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev117uday.gitbook.io/notes-md/cloud/google-cloud-platform/architecting-with-gce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
