Skip to main content
AD Academy

Cisco CLI trainer

Pick a task and get the minimal command set, the verification commands and the classic mistakes.

Pick a task

Switching (L2)

Routing (L3)

Network services

Security & management

FortiGate

Goal

Create VLAN 10 and assign one access port to a user.

Minimal command set

Switch(config)# vlan 10
Switch(config-vlan)# name SALES
Switch(config-vlan)# exit
Switch(config)# interface gigabitEthernet 0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# no shutdown

Verification

show vlan brief
show interfaces gigabitEthernet 0/1 switchport

What correct output looks like

show vlan brief lists Gi0/1 under VLAN 10; switchport shows Administrative Mode: static access and Access Mode VLAN: 10.

Why is it not working? Common mistakes

  • •Forgot switchport mode access — the port stays dynamic auto and behaves unpredictably.
  • •The VLAN was never created: the port shows as inactive in a non-existent VLAN.