Skip to content

Instantly share code, notes, and snippets.

View codeedog's full-sized avatar

Andrew Philips codeedog

View GitHub Profile
@codeedog
codeedog / 0 VLAN creation in FreeBSD.md
Last active January 4, 2025 17:00
VLAN creation in FreeBSD

How to configure VLANs in FreeBSD

Assume we have a switchport with an untagged (native) VLAN 10, plus two tagged VLANs 20 & 30 (see attached switch config). The device connected to that switchport has an internal interface eth0. Use this in /etc/rc.conf:

# SYNCDHCP makes the boot process wait for address assignment
ifconfig_eth0="SYNCDHCP"

vlans_eth0="20 30"
@codeedog
codeedog / 0 dnsmasq on FreeBSD.md
Last active April 11, 2025 20:40
Setting up dnsmasq on FreeBSD

Setting up dnsmasq on FreeBSD

Summary of steps required

  1. pkg install dnsmasq
  2. service resolv disable
  3. service resolv stop
  4. service dnsmasq enable
  5. service dnsmasq start