Question
Which switchport command will show active VLANs and interfaces to which are members?
Group of answer choices
show interfaces interfaces switchport
Show vlan brief
Show interfaces trunk
sh interfaces interfaces trunk
Group of answer choices
show interfaces interfaces switchport
Show vlan brief
Show interfaces trunk
sh interfaces interfaces trunk
Answers
GPT-4o mini
To show active VLANs and the interfaces that are members of those VLANs, the command you would use is:
**Show vlan brief**
This command provides a summary of the VLANs configured on the switch and lists the ports that are assigned to each VLAN.
The other options serve different purposes:
- **show interfaces switchport**: Displays detailed information about the switchport configuration of interfaces, but does not summarize all VLANs.
- **show interfaces trunk**: Provides information about trunk links and the VLANs they carry, but it's focused on trunk interfaces only.
- **sh interfaces interfaces trunk**: This command seems incorrect as it does not follow proper syntax, but if it were meant to be "show interfaces trunk", it would also show trunk port information specifically.
So, the most appropriate command for your requirement is **Show vlan brief**.
**Show vlan brief**
This command provides a summary of the VLANs configured on the switch and lists the ports that are assigned to each VLAN.
The other options serve different purposes:
- **show interfaces switchport**: Displays detailed information about the switchport configuration of interfaces, but does not summarize all VLANs.
- **show interfaces trunk**: Provides information about trunk links and the VLANs they carry, but it's focused on trunk interfaces only.
- **sh interfaces interfaces trunk**: This command seems incorrect as it does not follow proper syntax, but if it were meant to be "show interfaces trunk", it would also show trunk port information specifically.
So, the most appropriate command for your requirement is **Show vlan brief**.