Cisco VLAN Config Generator

Generate Cisco IOS-XE VLAN configuration including VLAN ID, name, SVI IP, subnet mask, description, and DHCP relay addresses.

Built by a network engineerCalculations run locally in your browserNo signup requiredNetwork information is not transmitted to our servers

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

Related tools

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