Cisco VLAN Config Generator
Generate Cisco IOS-XE VLAN configuration including VLAN ID, name, SVI IP, subnet mask, description, and DHCP relay addresses.
Cisco VLAN & SVI Configuration Generator
This tool only writes text. It never connects to a switch or router, never asks for or stores passwords, and never adds commands that erase or reload a device. Review every line, then apply it in a planned change window.
Off by default. Turn it on only for a Layer 3 switch that should route between these VLANs.
VLAN Row 1
Up to 32 characters.
Not a VLAN command on IOS. Used as the SVI description if that is blank.
Creates ip helper-address lines. Separate with commas or spaces.
What this generator produces
Each VLAN can produce two blocks of Cisco IOS or IOS XE CLI. The vlan block creates the VLAN in the VLAN database and gives it a name. The interface Vlan block (an SVI, or switched virtual interface) gives the switch a Layer 3 address in that VLAN, so hosts on the VLAN can use it as their default gateway. Both blocks are plain text, ready to review and paste during a change window.
Entering VLANs or importing them
You can type VLANs directly, or send them from the Multi-VLAN Planner (IDs, names, and required hosts) or from the VLSM Calculator (IDs, names, and allocated subnets). Imported VLANs never receive an SVI address automatically. For VLSM subnets you choose whether to use the first or last usable address, or enter your own. Imports never overwrite rows you have already edited.
SVI addressing rules
- The SVI address must be a host address. The network address and broadcast address are rejected.
- Each SVI needs a subnet between /8 and /30. A /31 or /32 cannot hold a normal VLAN SVI in this generator.
- Two SVIs cannot share the same address, and overlapping subnets are flagged so you can check the design.
- An address can be written as 10.20.30.1/24 or as 10.20.30.1 with a mask such as 255.255.255.0.
DHCP relay (ip helper-address)
When hosts on a VLAN get addresses from a DHCP server on another subnet, the SVI forwards their DHCP broadcasts as unicast to each helper address. Up to eight relay addresses are accepted per SVI. Duplicate relay addresses are removed, and the removal is shown as a warning. Relay addresses need an SVI, so a relay on a VLAN without one is an error.
IP routing
ip routing is off by default. It makes a Layer 3 switch route between its SVIs and its other routed interfaces. Turn it on only when the device should route these VLANs. Otherwise the SVIs will exist but will not forward traffic between subnets.
Before you apply the configuration
- Confirm the switch model and license support SVIs and the features you use.
- Check that the VLAN IDs and addresses match your addressing plan and do not collide with existing devices.
- Apply the output in a planned change window and keep a copy of the current configuration for rollback.
- Confirm the switch and its uplinks carry the VLANs (trunk allowed lists) before expecting hosts to connect.
Common mistakes
- Using the network address as the gateway: hosts cannot reach the network address, so choose a usable host address.
- Duplicate VLAN IDs: two rows with the same ID would overwrite each other on the switch, so the generator blocks them.
- Forgetting the VLAN exists on trunks: an SVI can be up while hosts on other switches still cannot reach it.
Technical references
- RFC 1918 — Private Address Allocation
- RFC 2131 — Dynamic Host Configuration Protocol
- RFC 3021 — Using 31-Bit Prefixes on IPv4 Point-to-Point Links
- Cisco IOS and IOS XE command reference: search Cisco documentation for
interface vlan,ip helper-address, andip routingfor the software release on your device.
Related tools
- VLAN Sizing Calculator — size each VLAN subnet before configuring it
- VLSM Calculator — allocate subnets for each VLAN
- DHCP Scope Calculator — plan the pools the relays will serve
- Cisco DHCP Config Generator — DHCP pool configuration
- Cisco Switchport & Trunk Generator — put these VLANs on access ports and trunks
- Cisco Configuration Validator — check the finished configuration for conflicts before applying it
Frequently Asked Questions
Does this tool connect to my switch or apply the configuration?
No. The generator only builds text in your browser. It does not connect to any device, store credentials, or deploy anything. You review the output and apply it yourself through your normal change process.
Why are there no commands to remove VLANs or reset interfaces?
Removal commands can take down live networks, so they are not included in generated output. Write any removal steps by hand after checking the impact on connected hosts and trunks.
Can I import VLANs from the Multi-VLAN Planner or VLSM Calculator?
Yes. Both tools have a button that sends their results here. VLSM imports can carry an SVI address choice (first or last usable address). Planner imports have no subnet, so you enter SVI addresses manually.
What is the difference between a VLAN and an SVI?
The VLAN is the layer 2 segment defined in the switch's VLAN database. The SVI, written as interface Vlan followed by the VLAN ID, is the layer 3 interface that gives the switch an address on that VLAN so hosts can use it as a gateway.
Should I turn on ip routing?
Only if this Layer 3 switch should route between its SVIs and other routed interfaces. It is off by default. Turning it on without a routing plan can change how traffic flows.
Technically Reviewed By
Senior Enterprise Network Engineer — 25+ years of IT and network infrastructure experience, including enterprise Cisco switching, routing, wireless, firewalls, VPN, network access control, SD-WAN, and large-scale network operations.
Calculations are performed using standards-based formulas and verified against known reference values. All computation runs client-side in your browser.
Related Resources
VLAN Sizing Calculator
Determine the right subnet size for a VLAN based on current clients, growth percentage, and reserved infrastructure addresses.
VLSM Calculator & Subnet Planner
Plan VLSM subnets from a parent network. Enter multiple host requirements and automatically allocate non-overlapping, right-sized subnets with largest-first allocation, address-space visualization, CSV export, and print.
DHCP Scope Calculator
Calculate DHCP scope ranges, available addresses, exclusions, reservations, and utilization for IPv4 networks.
Cisco DHCP Config Generator
Generate Cisco IOS-XE DHCP pool configuration including network, default-router, DNS, lease time, and excluded addresses.
Cisco Switchport & Trunk Config Generator
Generate Cisco IOS and IOS XE switchport configuration for access ports, standalone trunks, Port-channel interfaces, and EtherChannel members, with interface range grouping and copy or download output.
Subnet Calculator
Calculate IPv4 network addresses, broadcast addresses, subnet masks, CIDR ranges, wildcard masks, and usable hosts.
VLSM Explained
Variable Length Subnet Masking (VLSM) explained with step-by-step examples: how to split a network into differently sized subnets for efficient address allocation.
IPv4 Subnetting Guide
A complete walkthrough of IPv4 subnetting: network vs host bits, CIDR notation, calculating network addresses, broadcast addresses, and usable hosts with worked examples.