nerdexam
Cisco

200-301 · Question #778

Which command can you enter to view the ports that are assigned to VLAN 20?

The correct answer is A. Switch#show vlan id 20. The show vlan id <VLAN_ID> command displays detailed information about a specific VLAN, including all ports assigned to it.

Submitted by obi.ng· Mar 5, 2026Network Access

Question

Which command can you enter to view the ports that are assigned to VLAN 20?

Options

  • ASwitch#show vlan id 20
  • BSwitch#show ip interface brief
  • CSwitch#show interface vlan 20
  • DSwitch#show ip interface vlan 20

How the community answered

(52 responses)
  • A
    87% (45)
  • B
    2% (1)
  • C
    8% (4)
  • D
    4% (2)

Why each option

The `show vlan id <VLAN_ID>` command displays detailed information about a specific VLAN, including all ports assigned to it.

ASwitch#show vlan id 20Correct

The `show vlan id 20` command is the most direct and accurate way to display which physical switch ports are currently members of VLAN 20, along with other VLAN-specific details. This command directly queries the VLAN database for the specified VLAN.

BSwitch#show ip interface brief

`show ip interface brief` displays the IP address and status of all interfaces, including SVIs, but does not show which physical ports belong to which VLAN.

CSwitch#show interface vlan 20

`show interface vlan 20` displays the status and statistics for the Switch Virtual Interface (SVI) for VLAN 20, not the physical ports assigned to it.

DSwitch#show ip interface vlan 20

`show ip interface vlan 20` is incorrect syntax; the correct command for SVI IP info is `show ip interface brief` or `show interface vlan 20` if it has an IP.

Concept tested: Viewing VLAN port assignments

Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12_2_25_se/configuration/guide/scg/swvlan.html

Topics

#VLAN configuration#Cisco show commands#Switch port management

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice