DHCP: No Service, Joe Hall, CC BY 2.0, via flickr

Setup a New Network Interface and DHCP

About

Prerequisite

Assign a new interface

Instructions

  • Go to Interfaces > [Homelab] (Or whatever you named your new VLAN)
  • Check ‘Enable Interface’.
  • In ‘IPv4 Configuration Type’ select Static IPv4.
  • In ‘Static IPv4 address’, enter the VLAN interface ip address and CIDR prefix. This can be a different address range than your existing LAN network. For example, if your LAN address range is 192.168.0.1/24, your HOMELAB address range can be 192.168.100.1/24. If you are unsure, refer to this Subnet Cheat Sheet.
  • Now that the VLAN interfaces are configured properly, go to the “Services > ISC DHCPv4 > [VLAN]” page where “VLAN” is the desired VLAN to configure. Select the “Enable the DHCP server” checkbox.
  • In the range boxes, you may enter any range you like within the available range.
  • Select Save.
  • (Optional) If you would like to configure DHCP static ip mappings for devices on this network, select the ’+’. Enter the MAC address, IP address (Make sure the address is outside the dynamic range you set previously), and hostname for each device. Save.
  • Clone LAN firewall rules and point them to the new interface. Go to Firewall > Rules > LAN.
  • For each protocol rule: Select the clone action, edit the selected interface to be the new interface, e.g. HOMELAB, the select Save.

Next Steps

If everything went well, you should now have a separate VLAN network. Note that devices will be able to communicate between your LAN network and new VLAN unless you add firewall rules to block LAN traffic on the new VLAN. If you want to setup a Kubernetes cluster, it may be helpful to get it fully setup first before adding firewall rules to block LAN traffic. This way you will be able to run install commands, ping, or ssh into the machines without them being isolated from your workstation.

Continue on to Kubernetes Hardware Considerations to build a homelab on top of the new VLAN network you created.

References