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.
Question
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)- A87% (45)
- B2% (1)
- C8% (4)
- D4% (2)
Why each option
The `show vlan id <VLAN_ID>` command displays detailed information about a specific VLAN, including all ports assigned to it.
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.
`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.
`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.
`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
Community Discussion
No community discussion yet for this question.