Note: The VLAN numbers may be different so please check them carefully.
Task 1.
SW1(config)#vlan 100 SW1(config-vlan)#name Compute SW1(config-vlan)#vlan 200
SW1(config-vlan)#name Telephony
SW2 only uses “Compute” VLAN so we only need to configure this VLAN on SW2:
SW2(config)#vlan 100 SW2(config)#name Compute
Task 2.
Check the number of VLAN named “Available” so that we can assign interface E0/1 to this VLAN with the “show vlan” command. Suppose we found VLAN 99 is the “Available” VLAN.
SW2(config)#interface e0/1 SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 99 SW2(config-if)#no shutdown
Task 3.
Configure on both SW1 & SW2:
SW1+SW2(config)#interface e0/0 SW1+SW2(config-if)#switchport mode access SW1+SW2(config-if)#switchport access vlan 100
Task 4.
SW1(config)#interface e0/1 SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 100 SW1(config-if)#switchport voice vlan 200
Task 5.
SW2(config)#interface e0/1 SW2(config-if)#no cdp enable
Don’t forget to save the configuration on both switches: SW1+SW2#copy running-config startup-config
Correct Answer: A
VLAN and Trunking Configuration Sim
QUESTION 1
Guidelines
This is a lab item in which tasks will be performed on virtual devices.
+ Refer to the Tasks tab to view the tasks for this lab item.
+ Refer to the Topology tab to access the device console(s) and perform the tasks.
+ Console access is available for all required devices by clicking the device icon or using the tab(s) above the console window.
+ All necessary preconfigurations have been applied.
+ Do not change the enable password or hostname for any device.
+ Save your configurations to NVRAM before moving to the next item.
+ Click Next at the bottom of the screen to submit this lab and move to the next question.
+ When Next is clicked, the lab closes and cannot be reopened. Topology
Tasks
Three switches must be configured for Layer 2 connectivity. The company requires only the designated VLANs to be configured on their respective switches and permitted across any links between switches for security purposes. Do not modify or delete VTP configurations.
The network needs two user-defined VLANs configured:
VLAN 110: MARKETING
VLAN 210: FINANCE
Configure the VLANs on the designated switches and assign them as access ports to the interfaces connected to the PCs.
Configure the e0/2 interfaces on Sw1 and Sw2 as 802.1q trunks with only the required VLANs permitted.
Configure the e0/3 interfaces on Sw2 and Sw3 as 802.1q trunks with only the required VLANs permitted.
A. Solution
Task 1.
Sw1(config)#vlan 210
Sw1(config-vlan)#name FINANCE Sw1(config-vlan)#exit Sw1(config)#interface e0/1
Sw1(config-if)#switchport mode access Sw1(config-if)#switchport access vlan 210
Sw2(config)#vlan 110
Sw2(config-vlan)#name MARKETING Sw1(config)#interface e0/1
Sw1(config-if)#switchport mode access Sw1(config-if)#switchport access vlan 110
Sw3(config)#vlan 110
Sw3(config-vlan)#name MARKETING Sw3(config-vlan)#vlan 210 Sw3(config-vlan)#name FINANCE Sw1(config)#interface e0/0
Sw1(config-if)#switchport mode access Sw1(config-if)#switchport access vlan 110 Sw1(config)#interface e0/1
Sw1(config-if)#switchport mode access Sw1(config-if)#switchport access vlan 210
Task 2.
Only the VLAN 210 should be permitted on e0/2 of Sw1 & Sw2 so that PC5 can communicate with PC6. There is no traffic for VLAN 110 on this trunk link so we should not allow VLAN 110 to go through.
Sw1+Sw2(config)#interface e0/2
Sw1+Sw2(config-if)#switchport trunk encapsulation dot1q Sw1+Sw2(config-if)#switchport mode trunk Sw1+Sw2(config-if)#switchport trunk allowed vlan 210
Task 3.
Sw2+Sw3(config)#interface e0/3
Sw2+Sw3(config-if)#switchport trunk encapsulation dot1q Sw2+Sw3(config-if)#switchport mode trunk Sw2+Sw3(config-if)#switchport trunk allowed vlan 110,210
Don’t forget to save the configuration on both switches: SW1+SW2+Sw3#copy running-config startup-config
Dostları ilə paylaş: |