Академический Документы
Профессиональный Документы
Культура Документы
Manila
College of Engineering ISO 9001:2008
QUALITY MANAGEMENT SYSTEM
ENG-FO-018
CERTIFIED
DATA COMMUNICATION
EXPERIMENT #2
SY 2019-2020
TITLE:
BASIC VLAN AND TRUNK CONFIGURATION
LEARNING OBJECTIVES:
I. TOPOLOGY DIAGRAM
SW 1 172.17.99.11
SW 2 172.17.99.12
NATIONAL UNIVERSITY
Manila
College of Engineering ISO 9001:2008
QUALITY MANAGEMENT SYSTEM
ENG-FO-018
CERTIFIED
Step 1. Cable a network that is similar to the one in the topology diagram.
Step 2: Configure the PC/device with the assigned IP address and ping (check if they are connected to each other).
Use the vlan vlan-id command in global configuration mode to add a VLAN to Switch 1. there are four VLANs configured for
this lab: VLAN 10 (student), VLAN 20 (guest), VLAN 30 (Staff) and VLAN 99 (professor). After you create the VLAN, you will be
in vlan configuration mode, where you can assign a name to the VLAN with the name vlan name command.
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#name student
Switch(config)#vlan 20
Switch(config-vlan)#name guest
Switch(config)#vlan 30
Switch(config-vlan)#name staff
Switch(config-vlan)#vlan 99
Switch(config-vlan)#name professor
Switch(config-vlan)#exit
Use the show run brief command to verify that the VLANs have been created. Save/print screen your configuration when you
done show run.
Switch#show run
Use the show vlan brief command to verify that the VLANs have been created.
Create and name VLAN 10, 20 and 30 using the commands from step 1. Verify the correct configuration with the show vlan brief
command. Save/print screen your configuration when you done show vlan.
What ports are currently assigned to the three VLANs you have created? __________________
From PC 1, PC 2 & PC 3, ping the PROFESSOR address on the Switch 1. Is still connected to each other? __________
Step 1: Verify and determine the ports you have been created on Switch 1
Refer to the port assignment on the table. Ports are assigned to VLANs interface configuration mode, using the
switchport access vlan vlan-id command. you can assign each port individually to simplify task, as shown here. The
commands are shown for Switch 1, but you should configure also Switch 2 similarly.
NATIONAL UNIVERSITY
Manila
College of Engineering ISO 9001:2008
QUALITY MANAGEMENT SYSTEM
ENG-FO-018
CERTIFIED
Switch#conf t
Switch(config)#interface fastEthernet 0/11
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#end
Use the show run brief command to verify that the VLANs have been created. Save/print screen your configuration when you
done show run.
Switch#show run
From PC 1, PC 2 & PC 3, ping the PROFESSOR address on the Switch 1. Is still connected to each other? __________
From PC 4, PC 5 & PC 6, ping the PROFESSOR address on the Switch 2. Is still connected to each other? __________
Use the show vlan brief command to verify that the VLANs have been created. Save/print screen your configuration when you
done show vlan.
Switch#show vlan
Describe the verified assigned ports of each VLAN on the switch 1. ______________
A management VLAN is any that you configure to access the management capabilities of a switch. VLAN 99 serves as
PROFESSOR VLAN if you did not specifically define another VLAN. You assign the PROFESSOR VLAN an IP address and
subnet mask. A switch can be manage via HTTP, Telnet, SSH or SNMP. Because the out-of-the-box configuration has a VLAN
1 as default. You do not want an arbitrary user who is connecting to a switch to default to the management VLAN.
From interface configuration mode, use ip address command to assign the PROFESSOR IP address to the switch.
Switch#conf t
Switch(config)#interface vlan 99
Switch(config-if)#ip address 172.17.99.11 255.255.255.0
Switch(config-if)#no shutdown
Assigning the PROFESSOR address allows IP communication between the switches, and also allows any host connected to a
port assigned to VLAN 99 to connect to the switches. because VLAN 99 is configured as the PROFESSOR VLAN, any ports
assigned to this VLAN are considered PROFESSOR ports and should be secured to control which devices can connect to these
ports.
From PROFESSOR PC, ping the SWITCH 1 IP address. Is the connection successful? __________
Print screen/save the SHOW VLAN on the SWITCH that you configured.
Use the show run brief command to verify that the VLANs have been created. Save/print screen your configuration when you
done show run.
Switch#show run
NATIONAL UNIVERSITY
Manila
College of Engineering ISO 9001:2008
QUALITY MANAGEMENT SYSTEM
ENG-FO-018
CERTIFIED
Create and name VLAN using the previous steps and configure the assigned ports of each VLAN. Verify the correct
Configuration with the show vlan brief command. Save your configuration when done.
From PROFESSOR PC 4, ping PC 5 IP address. They are still connected after changing the ports? __________
From PROFESSOR PC 4, ping PC 6 IP address. They are still connected after changing the ports? __________
Print screen/save the SHOW VLAN on the SWITCH that you configured.
TASK 5: Configure trunking and the native VLAN for the trunking ports on the two switches.
Trunks are connections between the switches that allow the switches to exchange information for all VLANs. by default, trunk
port belongs to all VLANs, as opposed to an access port, which can only belong to a single VLAN.
Switch>en
Switch#conf t
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 1-99
Switch(config-if)#end
Switch#show run
Print screen/save the SHOW VLAN on the SWITCH that you configured.
From Switch 1, ping the PROFESSOR address on Switch 2. Ping also the several host from other PC to check if the
switches are working or not.
Is the ping attempt successful? What had happen after doing ping to other PC? _________________________________
TASK 6: Simulation
Using the simulation mode, simulate the PC 3 & PC 4 if they can communicate or send packet data. then after, simulate also
the other PC who has the same VLAN and port configuration.
Ping from PC1 to PC 4 successful? _____________ Ping from PC2 to PC 4 successful? _____________
Ping from PC1 to PC 5 successful? _____________ Ping from PC2 to PC 5 successful? _____________
Ping from PC1 to PC 6 successful? _____________ Ping from PC2 to PC 6 successful? _____________
Ping from PC3 to PC 4 successful? _____________ Ping from PC7 to PC 4 successful? _____________
Ping from PC3 to PC 5 successful? _____________ Ping from PC7 to PC 5 successful? _____________
Ping from PC3 to PC 6 successful? _____________ Ping from PC7 to PC 6 successful? _____________
Ping from PC1 to PC 4 successful? _____________ Ping from PC7 to PC 1 successful? _____________
Ping from PC2 to PC 5 successful? _____________ Ping from PC7 to PC 2 successful? _____________
Ping from PC3 to PC 6 successful? _____________ Ping from PC7 to PC 3 successful? _____________
TASK 6: Document the switch configurations and command prompt of each PC.
On each switch and PC, capture the running configuration to a text file and save it.