Creating and assigning VLANs on iOS

Create VLAN and give it a name

Name and ID do not matter. Using 1X and 1XX work just fine

switch> enable
switch#configure terminal
switch(config)#vlan <vlan-id>
switch(config-vlan)#name <name>

Assign a VLAN to a port

My switch uses ports 1/XX

switch> enable
switch#configure terminal
switch(config)#interface <gigabitethernet1/XX>
switch(config-if)#switchport access vlan <vlan-id>

Revision #3
Created Sun, Sep 15, 2019 3:25 AM by piper
Updated Fri, May 8, 2020 1:31 AM by piper