# Interfaces

OPNsense allows you to set up Interfaces, which can be used to set up separate networks. I set up 2 interfaces to allow my homelab to operate on 1, and all other devices (including my roommates) to operate on the other. The Interface assignments are as follows:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/xLxn6Jtk3caJ87hx-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/xLxn6Jtk3caJ87hx-image.png)

Here, you can see the devices (ports) and the interfaces you've assigned.

- igb0 = Port 1 of my NIC, which is connected directly to my Eero Mesh Router
- igb1 = Port 2 of my NIC, which connected to an 8-port gigabit switch, for my homelab
- igb2 = Port 3 of my NIC, which is my WAN connection from my modem to my OPNsense machine
- igb3 = Port 4 of my NIC, which is currently open and not connected to anything.

You can reassign these ports in the Interfaces --&gt; Assignments tab, should you happen to change anything in the future.

##### Interface Configurations

After hardwire connections and assigning interfaces to each port, you'll have to enable the interface. Navigate in the sidebar to Interfaces ---&gt; OPT1. Enable the interface and give it a name in the description section.

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/98dou34p91KsPzGC-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/98dou34p91KsPzGC-image.png)

Next, assign your Interface a Static IPv4 address, and select "24" to give that IP the full range of associates IPs. I've given my homeLAB interface a static IP of 192.168.2.1/24

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/exH5wApFzlq5LP8x-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/exH5wApFzlq5LP8x-image.png)

After saving changes, you'll need to first apply the changes and then adjust your DHCP server range. To do this, navigate to Services --&gt; ISC DHCPv4 --&gt; homeLAB (or whatever your name your new LAN). Enable DHCP server on the interface, and then designate a range of addresses in between the available range.

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/UlVrCeBVS5gARZBh-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/UlVrCeBVS5gARZBh-image.png)

Save your changes and apply if needed. To confirm you've configured everything properly, navigate to Services --&gt; ISC DHCPv4 --&gt; Leases and filter for your interface, in my case, homeLAB. Here, you'll find active devices on your interface. In my case, I have my homeLAB interface going through a NETGEAR switch which is connected to my Dell PowerEdge server:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/1Z2DRZKXb0yNL90b-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/1Z2DRZKXb0yNL90b-image.png)

 To further test it, I'll check if I can access my switch's Web GUI:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/kTGdw6EDbLYKPK57-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/kTGdw6EDbLYKPK57-image.png)

You can view all of Interface information in the Overview tab under the relevant Interfaces Section. With everything configured, it should look somewhat similar to whats below:

[![interfaces_overview.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/QN06D5ujqRLNHPI4-interfaces-overview.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/QN06D5ujqRLNHPI4-interfaces-overview.png)