Вы находитесь на странице: 1из 4

NATIONAL UNIVERSITY

Manila
College of Engineering ISO 9001:2008
QUALITY MANAGEMENT SYSTEM
ENG-FO-018
CERTIFIED

DATA COMMUNICATION
EXPERIMENT #2
SY 2019-2020

Name: _____________________________ Date: ____________________


Program/Year level _________________

TITLE:
BASIC VLAN AND TRUNK CONFIGURATION

LEARNING OBJECTIVES:

1. Cable network according to the topology diagram


2. Perform basic configuration task
3. Create VLAN
4. Assign switchport to a VLAN
5. Add, move and change ports
6. Enable trunking on inter-switch connections
7. Verify trunk configuration
8. Save the VLAN and Trunk Configuration

I. TOPOLOGY DIAGRAM

II. ADDRESSING TABLE

DEVICE HOSTNAME PORTS INTERFACE IP ADDRESS SUBNET MASK

PC 1 STUDENT Fa0/11 VLAN 10 172.17.10.21 255.255.255.0


PC 2 GUEST Fa0/18 VLAN 20 172.17.20.22 255.255.255.0

PC 3 STAFF Fa0/6 VLAN 30 172.17.30.23 255.255.255.0

PC 4 STUDENT Fa0/11 VLAN 10 172.17.30.24 255.255.255.0

PC 5 GUEST Fa0/18 VLAN 20 172.17.20.25 255.255.255.0

PC 6 STAFF Fa0/6 VLAN 30 172.17.10.26 255.255.255.0

PC 7 PROFESSOR Fa0/5 VLAN 99 172.17.99.100 255.255.255.0

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

TASK 1: Prepare the Network

Step 1. Cable a network that is similar to the one in the topology diagram.

Step 2: Assign an IP address of each device/PC that is listed on the table.

TASK 2: Perform basic configuration.

Step 1: Configure and activate Ethernet interfaces

Step 2: Configure the PC/device with the assigned IP address and ping (check if they are connected to each other).

Print screen/save the IP configuration of each from PC.


Ping from PC1 to PC 2 successful? _____________ Ping from PC1 to PC 5 successful? _____________
Ping from PC1 to PC 3 successful? _____________ Ping from PC1 to PC 6 successful? _____________
Ping from PC1 to PC 4 successful? _____________ Ping from PC1 to PC 7 successful? _____________

TASK 3: Configure VLANs on the switch

Step 1: Create VLANs on Switch 1.

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

Step 2: Verify that the VLANs have been created on Switch 1

Use the show vlan brief command to verify that the VLANs have been created.

Print screen/save the SHOW VLAN of SWITCH 1 that you configured.

Step 3: Configure and name VLANs on Switch 2.

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.

Print screen/save the SHOW VLAN of SWITCH 2 that you configured.

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? __________

TASK 4: Assign and configure ports of VLAN on the switch.

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)#interface fastEthernet 0/18


Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20

Switch(config)#interface fastEthernet 0/6


Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30

Switch(config)#interface fastEthernet 0/5


Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 99

Switch(config-if)#end

Step 2: Verify the ports you have been created on Switch 1

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? __________

Step 3: Verify that the VLANs have been created on Switch 1

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. ______________

Print screen/save the SHOW VLAN of SWITCH 2 that you configured.

Step 4: Assign the PROFESSOR VLAN

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.

Step 5: Verify the ports you have been created on Switch 1

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

Step 6: Configure the VLANs and ports of Switch 2 similar to Switch 1.

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.

What ports you assigned for the trunk connection? _________________

Step 1: Configuration the interface ports assigned in the trunk

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.

Step 2: Verify that the switches can communicate

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.

TASK 7: MAKE A CONCLUSION.

Вам также может понравиться