Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

VLAN · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

VLANs divide a switched network into separate Layer 2 broadcast domains. A switch virtual interface (SVI) provides IP management or inter-VLAN routing when supported and configured.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Use the VLAN IDs specified by the task.
  • Create the VLAN before assigning access ports.
Create a VLAN Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
Assign an access interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Layer 2 management SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Use the default gateway only when the device is not routing IP.
enable
configure terminal
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface vlan [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
ip default-gateway [NEXT-HOP]
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
Layer 3 SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
vlan [VLAN-ID]
 name [VLAN-NAME]
 exit
interface vlan [VLAN-ID]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VLAN-NAME]
Descriptive VLAN name.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
IPv6 routed SVI Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
ipv6 unicast-routing
vlan [VLAN-ID]
 exit
interface vlan [VLAN-ID]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Voice VLAN (only if requested) Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vlan [VLAN-ID]
 exit
vlan [VOICE-VLAN]
 exit
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 switchport voice vlan [VOICE-VLAN]
 no shutdown
 exit
end
Command parameters
[VLAN-ID]
VLAN identifier.
[VOICE-VLAN]
Voice VLAN identifier distinct from the access VLAN.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.

Show / Verify

Primary verification Section link
show vlan brief
Example output
10   USERS   active   Gi0/1

Check that the requested VLAN exists and that access ports are assigned correctly.

Detailed verification Section link
show interfaces [INTERFACE] switchport
Example output
Operational Mode: static access
Access Mode VLAN: 10 (USERS)

Check the actual switchport mode and access VLAN.

Detailed verification Section link
show ip interface brief
Example output
Vlan10   192.0.2.1   YES manual   up   up

Check the SVI status when an IPv4 SVI is configured.

Detailed verification Section link
show ipv6 interface brief
Example output
Vlan10   [up/up]
    2001:DB8:10::1

Check the IPv6 SVI address and line state.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
IPv6 reachability

Check IPv6 path and return routing.

ping ipv6 [DESTINATION-IPV6]
Layer 2 endpoint test

After sending traffic between the intended hosts, verify that the expected MAC addresses are learned on the correct VLAN and interface.

show mac address-table vlan [VLAN-ID]
show interfaces [INTERFACE] switchport

Common mistakes

  • VLAN does not exist.
  • Access port assigned to the wrong VLAN.
  • SVI has no active member or forwarding trunk for its VLAN.
  • IP routing missing on an L3 switch.

Configuration comparison

Access vs trunk vs routed — Access carries one data VLAN; trunk carries tagged VLANs; routed ports use no switchport and IP addressing.

Remove configuration — separate, potentially disruptive actions

Return the access port to its default VLAN

May disconnect the attached host from the intended VLAN.

enable
configure terminal
interface [INTERFACE]
 no switchport access vlan
 exit
end

Delete a VLAN

Ports and trunks using this VLAN may lose connectivity; inspect dependencies first.

enable
configure terminal
no vlan [VLAN-ID]
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?