# 5. Internet Gateway & Route Tables

As we already created our Subnet now launch EC2 instance:

![](/files/-MCf51_rg_zMnBBUATJY)

![](/files/-MCf5ALK1VR-ASEw3zVT)

![](/files/-MCf5dvWEi9HP6rjtZH0)

![](/files/-MCf5ljS7a_lX6Bha6FH)

![](/files/-MCf5phbY8gUpiMQ5bo2)

![](/files/-MCf5uYaaRvwJZPotvJX)

![](/files/-MCf5yBg2NJdXPVDlKtG)

![](/files/-MCf61YpFs9cG0Eb5d0a)

Still we not able to SSH into our EC2 instances: What we need to do is to add the Router table to our Internet Gateway:

![](/files/-MCf6ftnEKe2huPJIlwg)

![](/files/-MCf6lHoarL2AsIBdgRy)

Now create two route tables one is public route table & another one is private route table :&#x20;

![](/files/-MCf73jwkozoWs91JR1l)

![](/files/-MCf7G6QfHQz3b1LJNtk)

![](/files/-MCf7hGTfyEwEQU8-uNq)


---

# 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://architectures.gitbook.io/project/aws-certified-solutions-architect-associate-certification-saa-c02/networking-vpc/5.-internet-gateway-and-route-tables.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.
