Cisco

VLAN Configuration Generator

Generate the Cisco IOS configuration for a VLAN: VLAN creation, port assignment in access or trunk mode, portfast and voice VLAN.

E.g. FastEthernet0/5,Gi0/1 — the prefix can be abbreviated.

How it works

In access mode, a port belongs to a single VLAN: this is the configuration for workstations and printers. In trunk mode, the port carries several 802.1Q-tagged VLANs: this is the link between switches or to an access point.

The tool adds portfast on access ports (fast convergence) and handles the voice VLAN for IP phones. The generated configuration is never executed: you copy it and apply it yourself.

Examples

WiFi ports

Two access ports in VLAN 20.

vlan_id20
nameWIFI
interfacesGigabitEthernet0/1, GigabitEthernet0/2
modeaccess
voice
Load this example

Trunk link

Trunk with native VLAN 99.

vlan_id99
nameTRUNK-NATIF
interfacesGigabitEthernet0/24
modetrunk
voice
Load this example

Frequently asked questions

What is the native VLAN for?

Untagged frames travel in the trunk's native VLAN. For security, it is isolated in an unused VLAN.

Why portfast only on access ports?

On a trunk, portfast can create switching loops during STP convergence.