# Vswitch & Port Group Configuration

## Vswitch

To create a port group on VMware ESXI we first need to create a Virtual Switch as shown below.

![](/files/RvunkTS47bojlIVEcPjt)

![](/files/qcv3gpriZewP8yfnIZF1)

## Port Group

Now that we have a virtual switch setup, we can setup the port group to assign our machines to.

![](/files/mzhrC4tz9087VSUTpG7N)

![](/files/3BpA6uYoUoaHdlvaELoG)

## Pfsense Configuration

Now that we have the new port group created, we can add our Pfsense VM into the network to act as the gateway.

![](/files/sapmawtnNByAMNBN5LWr)

![](/files/8rvRlSutpZ8R8gMls5SE)

Now that the machine is connected to the LAN, we will be able to onboard the new LAN onto the FW.

![](/files/xkmFTTzsZp1LEHTahHC0)

Once the Interfaces is added, we have to configure the interface and set the IP range.

![](/files/fcuRwmNxHm3OekYwBUcg)

![](/files/5XLwDadTPOIKiyqDHTGE)

And once all that is done, check back at the terminal to confirm that you're LAN is successfully added as shown below.

![](/files/Txwj1Xjd8VZ7djefCEVu)


---

# 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://ad.4pfsec.com/network-setup/vswitch-and-port-group-configuration.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.
