---
title: "Deploy AWS VPC (Optional)"
canonical: "https://docs.infoblox.com/space/DeploymentGuidevNIOSforAWS/736297360/Deploy%20AWS%20VPC%20(Optional)"
format: markdown
---
> Macro (toc)

Prior to deploying a vNIOS for AWS instance, you will need a VPC in the desired region. This section details the deployment and configuration of a new VPC. If deploying vNIOS into an existing VPC, skip ahead to the Deploy vNIOS Instance section.

### **Create VPC**

1. Log in to the AWS Management Console.

![image](media://bfdfd808-dc15-4a30-b2d0-d0994406735f)

2. Use the Services search box to find and select **VPC**.

![Graphical user interface, application

Description automatically generated](media://6167af0c-be98-4141-836a-85f2c9c874db)

3. On the VPC Dashboard, click on **Create VPC**.

![Graphical user interface, application, website

Description automatically generated](media://fccd3182-5d7e-4445-b7cd-a8d1856093df)

4. Select **VPC only**.
5. Enter a name for your VPC.
6. Enter an IPv4 CIDR block for your VPC.

![Graphical user interface, text, application, email

Description automatically generated](media://5cfa652c-5070-4bf6-bbe2-d0abbbca85cf)

7. Scroll down to click **Create VPC**.

### **Create Subnets**

Before using your new VPC, you will need to create at least one subnet. vNIOS for AWS instances should use two subnets, one for the LAN1 interface and one for the MGMT interface. In this guide, we will create a subnet for each interface.

1. Back on the VPC page, click on **Subnets**.
2. Click the **Create subnet** button.

![Graphical user interface, application

Description automatically generated](media://564abf87-f3a7-47f1-8ef0-0946dc9061f7)

3. Select your new VPC from the dropdown list.

![Graphical user interface, text, application, email, Teams

Description automatically generated](media://9587ca7e-2538-4059-b4d4-c3da9989aad8)

4. Enter a name for the subnet.
5. Select an Availability Zone.
6. Enter a CIDR block for the subnet that fits within the CIDR of your VPC.

![Graphical user interface

Description automatically generated](media://62c0cbe7-b642-4f8d-a50d-df82dbc5e62a)

7. Click **Add new subnet**.
8. Enter a name for the second subnet.
9. For Availability Zone, use the dropdown to select the same availability zone used by the first subnet.
10. Enter a CIDR for this subnet, which must not overlap with the first subnet.
11. Click **Create subnet**.

![Graphical user interface, application

Description automatically generated](media://d33479e6-6970-4682-bd5a-bfbf8b5a96f4)

### **Add Internet Connectivity to the VPC**

To allow connectivity in and out of your VPC through the Internet, including connectivity for your vNIOS instance, you will need to create an Internet Gateway and associated routes. If you are using site-to-site VPN or other methods of connecting to AWS VPCs, direct Internet connectivity may not be needed. Configuring these other types of connectivity are outside the scope of this guide; please refer to AWS documentation.

### **Attach Internet Gateway**

1. Click on **Internet Gateways** in the VPC menu.
2. Click on **Create internet gateway**.

![Graphical user interface, application, Teams

Description automatically generated](media://5c6e54f6-d4b8-4500-af04-c9314a2ac8d9)

3. Name the gateway and optionally add other Tags.

![Graphical user interface, text, application

Description automatically generated](media://420f2807-3bdd-46b2-ac24-f0a920c3a2b9)

4. Click **Create internet gateway**.
5. Once the gateway has been successfully created, click on **Attach to a VPC**.

![Graphical user interface, text, application

Description automatically generated](media://aad45fc5-df2c-4269-a8f1-23a364659833)

6. Select your VPC from the dropdown.

![Graphical user interface, text, application, email

Description automatically generated](media://66befacf-6d77-4b55-b73c-74983a0e9781)

7. Click on A**ttach internet gateway**.

### **Add Routes**

Next, we’ll update the VPC route table to send all traffic through the new internet gateway.

1. Once the attach operation is complete, click **Route tables** in the VPC menu.

![Graphical user interface, text, application, email

Description automatically generated](media://b4a12260-78ef-493c-ac10-24a145cea714)

2. Select the route table for the new VPC.
3. Click on the **Routes** tab.
4. Click the **Edit routes** button.

![Graphical user interface, text, application, email, website

Description automatically generated](media://64343888-724e-46a7-9157-740f6365627f)

5. On the Edit routes page, click **Add route**.
6. For Destination, enter **0.0.0.0/0**.
7. For Target, select **Internet Gateway** from the dropdown.

![Graphical user interface, text, application, email

Description automatically generated](media://6af9f863-5158-4eb2-8145-91a9cd25b7ec)

8. Select the Internet gateway for this VPC from the dropdown.
9. Click on **Save changes**.

![Graphical user interface, text, application, email

Description automatically generated](media://ec4782d7-961f-4e14-a042-ade777762fe2)