Exam 200-301 | Question id=5303 | Network Access |
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?
A. |
switch(config)# vtp domain MARKETING 25 | |
B. |
switch(config)# vlan 25
switch(config-vlan)# name MARKETING
| |
C. |
switch(config-if)# vlan 25 name MARKETING | |
D. |
switch(config)# vtp 25
switch(config-vtp)# name MARKETING
|
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.