Question 1) Cisco Certified Network Associate
Objective: Implementation and Operations
SubObjective: Configure a switch with VLANs and inter-switch communication
Multiple Answer Multiple Choice
Which steps are required to add a VLAN? (Choose two.)
A. Create the VLAN.
B. Assign a subnet to the VLAN
C. Define the encapsulation type.
D. Add the VLAN to the STP domain.
E. Enable an appropriate routing protocol.
F. Add the desired switch ports to the VLAN.
Answer:
A. Create the VLAN.
F. Add the desired switch ports to the VLAN.
Tutorial:
To add a VLAN, you must first create the VLAN and then assign the desired ports to the VLAN.
For example, suppose you want to add VLAN 2 to Switch 1 and add Ethernet ports 0/3 and 0/4 to the new VLAN. You would use the following commands to accomplish this task:
Switch1(config)# vlan 2
Switch1(config-vlan)# end
Switch1(config)# interface e 0/3
Switch1(config-if)# switchport access vlan 2
Switch1(config-if)# interface e 0/4
Switch1(config-if)# switchport access vlan 2
The vlan 2 command creates VLAN number 2. Assigning a VLAN number is required, but assigning a VLAN name is optional. If a name is not specified, the VLAN number will be appended to the word “VLAN” to create a default name for the VLAN. The VLAN created in the configuration above would be named VLAN0002 because the VLAN name was not specified with the vlan command.
The interface e 0/3 command switches to interface configuration mode for Ethernet port 0/3. Assuming that the port has been configured as an access port, the switchport access vlan 2 command assigns Ethernet 0/3 to VLAN 2. The next command switches to interface configuration mode for Ethernet port 0/4, where Ethernet port 0/4 is added to VLAN2 using the switchport access vlan 2 command. The Catalyst switches also support dynamic VLAN-membership assignment using a VLAN Management Policy Server (VMPS). To configure ports for dynamic assignment use the switchport access vlan dynamic command.
For more information, see Configuring VLANs in the Catalyst 2950 Desktop Switch Software Configuration Guide at http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12111yj4/lrescg/swvlan.htm
Reference:
1. ICND Student Guide v2.1 – Volume 1 – Configuring VLANs – Configuring a VLAN
These questions are derived from the Self Test Software Practice Test for Cisco exam 640-801 – Cisco Certified Network Associate (single-exam option)