CCNA Discovery Introducing Routing and Switching in the Enterprise
Nama : Tugiyono NIM : 15.240.0187 Lab 4.Creating VLANs and AssigningPorts
Device
Host Name
Switch 1
Switch1
VLAN 10 Fa0/5 – Fa0/6
VLAN 20 Fa0/7 – Fa0/8
VLAN 1 All Remaining Ports
VLAN 1 IP Address 172.16.1.2/24
Objectives
Configure three VLANs on a switch.
Verify connectivity.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 1 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise Background / Preparation This lab focuses on the basic VLAN configuration of the Cisco 2960 switch (or similar) using Cisco IOS commands. The information in this lab applies to other switches;however, command syntax may vary.Depending upon the switch model, the interface designations may differ.For example, modularswitcheshave multiple slots; therefore, the FastEthernet ports may be FastEthernet 0/1or FastEthernet1/1, depending on the slot and port. The following resources are required:
OneCisco 2960 switch or other comparable switch
Three Windows-based PCswith a terminal emulation program
One RJ-45-to-DB-9 connector console cable to configure the switch
Threestraight-through Ethernet cables to connect from the PCs to Switch 1
NOTE:Makesure that the switch has been erased and has no startup configurations. Instructions for erasing the switch are provided in the Lab Manual, located on Academy Connection in the Tools section.
Step 1: Connect the equipment a. Connect PC1 to the switch with a console cable. b. Connect PC1 to switch port FastEthernet 0/4 with a straight-through Ethernet cable. c.
Connect PC2 to switch port FastEthernet 0/5 with a straight-through Ethernet cable.
d. Connect PC3 to switch port FastEthernet 0/7 with a straight-through Ethernet cable.
Step 2: Perform basic PC configuration Use this table to configure addressing on the PCs. Computer
IP Address
Subnet Mask
Default Gateway
PC1
172.16.1.3
255.255.255.0
172.16.1.1
PC2
172.16.10.3
255.255.255.0
172.16.10.1
PC3
172.16.20.3
255.255.255.0
172.16.20.1
Step 3: Configure Switch 1 a. Configure Switch 1 with a hostname and console, Telnet, and privileged passwords. Telah dilaksanakan Switch#ena Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname switch1 switch1(config)#ena secret tugi switch1(config)#line con 0 switch1(config-line)#pass 123 switch1(config-line)#login switch1(config-line)#exit switch1(config)#line vty 0 15 switch1(config-line)#pass 123 switch1(config-line)#exit switch1(config)#end switch1# All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 2 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise %SYS-5-CONFIG_I: Configured from console by console switch1# Tampilan :
b. Configure Switch 1 with the VLAN 1 IP address of 172.16.1.2/24. Switch1(config)#interface vlan1 Switch1(config-if)#ip address 172.16.1.2 255.255.255.0 Switch1(config-if)#no shutdown Switch1(config-if)#exit Telah dilaksanakan Switch#ena Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int vlan1 Switch(config-if)#ip add 172.16.1.2 255.255.255.0 Switch(config-if)#no shut Switch(config-if)# %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up Switch(config-if)#exit
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 3 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise c.
Create VLAN 10, named Faculty, and VLAN 20, named Students. Switch1(config)#vlan 10 Switch1(config-vlan)#name Faculty Switch1(config-vlan)#exit Switch1(config)#vlan 20 Switch1(config-vlan)#name Students Switch1(config-vlan)#exit Telah dilaksakan Switch(config-if)#exit Switch(config)#vlan 10 Switch(config-vlan)#name Faculty Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#name students Switch(config-vlan)#exit
d. Configure Switch 1 with the default gateway address of 172.16.1.1. Switch1(config)#ip default-gateway 172.16.1.1 Telah dilaksanakan : Switch(config)#ip default-gateway 172.16.1.1 e. Configure Switch 1 to place interfaces Fa0/5 and Fa0/6 in VLAN 10. Switch1(config)#interface Fa0/5 Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 10 Switch1(config-if)#interface Fa0/6 Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 10 Switch1(config-if)#exit Telah dilaksanakan : Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int fa0/6 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit f.
Configure Switch 1 to place interfaces Fa0/7 and Fa0/8 in VLAN 20. Switch1(config)#interface Fa0/7 Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 20 Switch1(config-if)#interface Fa0/8 Switch1(config-if)#switchport mode access Switch1(config-if)#switchport access vlan 20 Switch1(config-if)#end Switch1# Telah dilaksanakan Switch#ena Switch#conf t
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 4 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int fa0/6 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#int fa0/7 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int fa0/8 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch# g. Save the configuration. Switch1#copy running-config startup-config Telah dilaksanakan Switch#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] h. By default, there is only a single VLAN for all ports.You cannot rename or delete VLAN 1.Therefore, no further configuration is necessary to assign the rest of the ports to VLAN 1.To prove this, issue the command show vlan brief.
Are all other switch ports in VLAN 1? Ya Semua kecuali Fa0/5, Fa0/6, Fa0/7, Fa0/8 Which switch ports are in VLAN 10? Fa0/5, Fa0/6, Which switch ports are in VLAN 20? Fa0/7, Fa0/8
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 5 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise
i.
Issue the command show vlan.
What difference is noticed between the two commands show vlan briefand show vlan? Show vlan ada SAID MTU sementara show vlan brief vlan, name, status, port,
Step 4: Verify connectivity a. Ping from each PC to Switch1 address of 172.16.1.2. Are PC1 pings successful?Ya
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 6 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise Are PC2 pings successful?Tidak
Are PC3 pings successful? Tidak
b. Ping from PC1 to PC2 and PC3. Can PC1 ping PC2?Tidak
Can PC1 ping PC3?Tidak All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 7 of 8
CCNA Discovery Introducing Routing and Switching in the Enterprise
Step 5: Reflection a. Why can PC1 ping Switch1 when PC2 and PC3 cannot? Karena PC1 ping Switch1 bisa, karena masih dalam satu vlan yaitu vlan1, sementara PC1 tidak bisa ping PC2 disebabkan oleh vlannya sudah berbeda yaitu vlan 10, begitu pula dengan Ping PC1 ke PC3 tidak bisa karena sudah berbeda vlan yaitu vlan 20 b. The PCs cannot ping each other. Why? Karena setiap PC sudah berbeda-beda Vlannya, PC1 Vlan 1, PC2 Vlan 10, PC3 Vlan 20
Merdeka
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 8 of 8