Assigning a VLAN to an interface

To use a VLAN, it must be assigned to an interface on the switch. VLANs can only be assigned to non-routed (layer 2) interfaces. All interfaces are routed (layer 3) by default when created. Use the no routing command to disable routing on an interface.