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