Which Cisco 2950 switch command or set of commands would be used to create a Virtual LAN (VLAN) named MARKETING with a VLAN number of 25?

Last Updated on August 7, 2021 by Admin 3

Which Cisco 2950 switch command or set of commands would be used to create a Virtual LAN (VLAN) named MARKETING with a VLAN number of 25?

  • switch(config)# vtp domain MARKETING 25
  • switch(config)# vlan 25
    
    switch(config-vlan)# name MARKETING
  • switch(config-if)# vlan 25 name MARKETING
  • switch(config)# vtp 25
    
    switch(config-vtp)# name MARKETING
Explanation:
The following commands would create a VLAN named MARKETING with a VLAN number of 25:

switch(config)# vlan 25
switch(config-vlan)# name MARKETING

The steps to add anew VLAN are as follows:
1. Create the new VLAN
2. Name the VLAN
3. Add the desired ports to the VLAN

VLANs on current Cisco switches are configured in global configuration mode. The VLAN is first created with the vlan # command, and then optionally named with the name vlan-name command. Interfaces are added to VLANs using either the interface or interface range commands.

The switch(config)# vtp domain MARKETING 25 command will not create a VLAN. This command creates a VLAN Trunking Protocol (VTP) domain. VTP is a means of synchronizing VLANs between switches, not a method of manually creating VLANs.

The vlan 25 name command is deprecated, and is not supported on newer Cisco switches. Even on switches that support the command, this answer is incorrect because the vlan 25 name command was issued in VLAN database mode, rather than interface mode.

Objective:
LAN Switching Fundamentals
Sub-Objective:
Configure, verify, and troubleshoot VLANs (normal/extended range) spanning multiple switches

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments