Generate complete VLAN configurations for Cisco Catalyst access switches. Trunk setup, DHCP snooping per VLAN, and BLACKHOLE VLAN for unused ports — all included.
Generate my VLAN config →VLANs (Virtual Local Area Networks) segment your network at Layer 2, allowing different groups of devices — workstations, IP phones, servers, access points — to share the same physical switch while remaining logically isolated from each other. On an access switch, VLANs determine which broadcast domain each port belongs to and which traffic can flow between endpoints without routing.
Access ports carry traffic for a single VLAN and connect to end devices. Trunk ports carry traffic for multiple VLANs simultaneously using 802.1Q tagging and connect switches together or to the distribution layer. The native VLAN on a trunk carries untagged traffic — it should never be VLAN 1 and should not be assigned to any end device.
VLAN naming matters for operational clarity and consistency. The convention used by netconfgen
is all-uppercase with hyphens: PRODUCTION, VOICE,
MANAGEMENT. Consistent naming across your estate makes it immediately obvious
what each VLAN is for when reading configs or troubleshooting.
vlan 10 name PRODUCTION vlan 20 name VOICE vlan 99 name MANAGEMENT vlan 999 name BLACKHOLE
interface GigabitEthernet1/0/1 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable shutdown
interface TwentyFiveGigE1/1/1 switchport mode trunk switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,99 spanning-tree link-type point-to-point no shutdown
PRODUCTION is unambiguous. vlan10 is not.switchport trunk allowed vlan all in production. Enumerate only the VLANs that need to traverse each trunk link.ip dhcp snooping vlan to your user VLANs specifically. This blocks rogue DHCP servers without interfering with management traffic.VLANs, trunk, DHCP snooping and BLACKHOLE — all configured automatically.
Generate my config →