Packet Tracer - Basic Switch Configuration - Physical Mode: Topology
Packet Tracer - Basic Switch Configuration - Physical Mode: Topology
Topology
Addressing Table
Device Interface IP Address / Prefix
S1 VLAN 99 192.168.1.2 /24
S1 VLAN 99
2001:db8:acad:1::2 /64
S1 VLAN 99
fe80::2
PC-A NIC 192.168.1.10 /24
2001:db8:acad:1::10 /64
PC-A NIC
Objectives
Part 1: Cable the Network and Verify the Default Switch Configuration
Part 2: Configure Basic Network Device Settings Part
3: Verify and Test Network Connectivity
Background / Scenario
Cisco switches can be configured with a special IP address known as the switch virtual interface (SVI). The
SVI, or management address, can be used for remote access to the switch to display or configure settings. If
the VLAN 1 SVI is assigned an IP address, by default, all ports on VLAN 1 have access to the SVI IP
address.
In this activity, you will build a simple topology using Ethernet LAN cabling to access a Cisco switch using the
console and remote access methods. You will examine default switch configurations before configuring basic
switch settings. These basic switch settings include device name, interface description, local passwords,
message of the day (MOTD) banner, IP addressing, and static MAC address. You will also use a
management IP address for remote switch management. The topology consists of one switch and two hosts
using only Ethernet and console ports. You will verify network connectivity and manage a MAC address table
using two end devices.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
Instructions
Part 1: Cable the Network and Verify the Default Switch Configuration
In Part 1, you will set up the network topology and verify default switch settings.
Step 1: Cable the network as shown in the topology.
a. From the shelf, click and drag switch S1 and place it on the left side of the table.
b. From the shelf, click and drag the device PC-A and place it on the right side of the table. Power on PC-A.
c. Connect a console cable from device PC-A to switch S1, as shown in the topology. Do not connect the
device PC-A Ethernet cable at this time.
d. From the Desktop tab of PC-A, use Terminal to connect to the switch.
Question:
Why must you use a console connection to initially configure the switch? Why is it not possible to connect
to the switch via Telnet or SSH? Type your answers here.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
Notice that the prompt changed in the configuration to reflect privileged EXEC mode.
b. Verify that there is a clean default configuration file on the switch by issuing the show running-config
privileged EXEC mode command. Examine the current running configuration file.
Questions:
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
Question:
Questions:
f. Connect an Ethernet cable from PC-A to GigabitEthernet1/0/6 on the switch. Allow time for the switch and
PC to negotiate duplex and speed parameters. Examine the IP properties of the SVI VLAN 1.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
Question:
Typ
g. Enter global configuration and enable the SVI VLAN 1 interface.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
UP
What event would make an interface go down?
Type
Shutdown
k. Examine the default VLAN settings of the switch. Switch# show vlan
Question:
here.
Is VLAN 1 active?
Yes.
What type of VLAN is the default VLAN?
Type
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
Files have a file extension, such as .bin, at the end of the filename. Directories do not have a file
extension.
Question:
b. Set the SVI IP address of the switch. This allows remote management of the switch.
Before you can manage S1 remotely from PC-A, you must assign the switch an IP address. The default
configuration on the switch is to have the management of the switch controlled through VLAN 1.
However, a best practice for basic switch configuration is to change the management VLAN to a VLAN
other than VLAN 1.
For management purposes, use VLAN 99. The selection of VLAN 99 is arbitrary and in no way implies
that you should always use VLAN 99.
First, create the new VLAN 99 on the switch. Next, set the IP address of the switch to 192.168.1.2 with a
subnet mask of 255.255.255.0 on the internal virtual interface VLAN 99. An IPv6 address can also be
configured on the SVI interface. Use the IPv6 addresses listed in the Addressing Table.
Notice that the VLAN 99 interface is in the down state even though you entered the no shutdown
command. The interface is currently down because no switch ports are assigned to VLAN 99. c.
Assign all user ports to VLAN 99.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
To establish connectivity between the host and the switch, the ports used by the host must be in the
same VLAN as the switch. After a few seconds, VLAN 99 comes up because at least one active port
(Fa0/6 with PC-A attached) is now assigned to VLAN 99.
d. Issue the show vlan brief command to verify that all ports are in VLAN 99.
e. Configure the default gateway for S1. If no default gateway is set, the switch cannot be managed from a
remote network that is more than one router away. Although this activity does not include an external IP
gateway, assume that you will eventually connect the LAN to a router for external access. Assuming that
the LAN interface on the router is 192.168.1.1, set the default gateway for the switch.
f. Console port access should also be restricted with a password. Use cisco as the console login password
in this activity. The default configuration is to allow all console connections with no password needed. To
prevent console messages from interrupting commands, use the logging synchronous option.
S1(config)# line con 0
S1(config-line)# logging synchronous
g. Configure the virtual terminal (vty) lines for the switch to allow Telnet access. If you do not configure a vty
password, you will not be able to use Telnet to access the switch.
Question:
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
a. Navigate to the Desktop tab.
b. Click IP Configuration.
c. Verify that the Static IP Configuration radial button is selected.
d. Enter the IPv4 address, subnet mask, and default gateway.
e. Verify that the Static IPv6 Configuration radial button is selected.
f. Enter the IPv6 address, prefix, and default gateway
g. Click the X to close the IP Configuration window.
S1_service#show run
Building configuration...
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S1_service
!
!
!
no ip domain-lookup
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 99
switchport mode access
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
!
interface FastEthernet0/9
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/10
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 99
switchport mode access
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
!
interface FastEthernet0/21
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/22
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/23
switchport access vlan 99
switchport mode access
!
interface FastEthernet0/24
switchport access vlan 99
switchport mode access
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan99
ip address 192.168.1.2 255.255.255.0
!
ip default-gateway 192.168.1.1
!
banner motd ^C Unauthorized access is strictly prohibited. ^C
!
!
!
line con 0
logging synchronous
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
End
b. Verify the management VLAN 99 settings.
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
S1# show interface vlan 99
Questions:
BW 100000 Kbit.
Up.
What is the line protocol state?
Reflection Questions
1. Why should you configure the vty password for the switch? Type
your answers here.
2. Why change the default VLAN 1 to a different VLAN number?
Type your answers here.
3. How can you prevent passwords from being sent in plaintext?
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 14 www.netacad.com
Packet Tracer - Basic Switch Configuration - Physical Mode
© 2013 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 14 www.netacad.com