VLANs allow for the logical grouping of switch interfaces, enabling communication as if all connected devices were on the same isolated network.
(switch#) Create VLAN:
vlan <VLAN>
(switch#) Configure an interface to associate it with a VLAN:
interface <IFACE>
no shutdown
no routing
(switch#) Configure an interface as an access port:
vlan access VLAN
(switch#) Configure an interface as a trunk port:
vlan trunk native <VLAN>
vlan trunk allowed <VLAN>
(switch#) Configure VLAN as voice:
NOTE In order to give a specific VLAN a voice designation and add the proper hooks, it is necessary to add the
voicecommand in the VLAN context. This configuration is the same for all CX-series switches.
vlan <VLAN>
voice
(switch#)
show vlan [VLAN]
Example output:
show vlan
--------------------------------------------------------------------------------------
VLAN Name Status Reason Type Interfaces
--------------------------------------------------------------------------------------
1 DEFAULT_VLAN_1 up no_member_port static 1/1/2
10 VLAN10 up ok static 1/1/1-1/1/2