First page Back Continue Last page Image

VLAN Port Assignment Commands

Once the VLAN is created, we assign it to the correct Physical interfaces (Switch Ports)

Task

Command

Enter global configuration mode

Switch# configure terminal

Enter interface configuration mode

Switch(config)# interface interface-id

Set the port to access mode

Switch(config-if)# switchport mode access

Assign the port to a VLAN

Switch(config-if)# switchport access vlan vlan-id

Leave Config Mode

Switch(config-if)# end

S1(config)# interface f18

S1(config-if)# switchport access vlan 20