VLAN Configuration Generator
Generate the Cisco IOS configuration for a VLAN: VLAN creation, port assignment in access or trunk mode, portfast and voice VLAN.
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_id | 20 |
| name | WIFI |
| interfaces | GigabitEthernet0/1, GigabitEthernet0/2 |
| mode | access |
| voice |
Trunk link
Trunk with native VLAN 99.
| vlan_id | 99 |
| name | TRUNK-NATIF |
| interfaces | GigabitEthernet0/24 |
| mode | trunk |
| voice |
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.