Académique Documents
Professionnel Documents
Culture Documents
Configuring a switch
What is a Network Switch?
Most business networks today use switches to
connect computers, printers and servers
within a building or campus.
A switch serves as a controller, enabling
networked devices to talk to each other
efficiently.
Through information sharing and resource
allocation, switches save businesses money
and increase employee productivity.
Switches create a network and are Routers
which connect networks.
Configuring a switch
What is a Network Switch: Unmanaged Switches
An unmanaged switch works right out of the box.
It's not designed to be configured, so you don't have to worry
about installing or setting it up correctly.
Unmanaged switches have less network capacity than managed
switches.
You'll usually find unmanaged switches in home networking
equipment.
What is a Network Switch: Managed Switches
A managed network switch is configurable, offering greater
flexibility and capacity than an unmanaged switch.
You can monitor and adjust a managed switch locally or remotely,
to give you greater network control.
Configuring a switch
LAB1
Lab switch basic configuration (using packet tracer)
instructions
This lab will test your ability to configure basic settings on a cisco switch.
1. Use the local laptop connect to the switch console.
2. Configure Switch hostname as LOCAL-SWITCH
3. Configure the message of the day as "Unauthorized access is forbidden"
4. Configure the password for privileged mode access as "cisco". The
password must be md5 encrypted
5. Configure password encryption on the switch using the global
configuration command
Configuring a switch
LAB1
Configuring a switch
LAB1
Solution
Configure Switch hostname as LOCAL-SWITCH
hostname LOCAL-SWITCH
Configuring a switch
LAB1
Configure CONSOLE access [...]
line con 0
password ciscoconsole
logging synchronous
login
history size 15
exec-timeout 6 45
Configure TELNET access [...]
line vty 0 15
exec-timeout 8 20
password ciscotelnet
logging synchronous
login
history size 15
Configure the IP address of the switch as 192.168.1.2/24 and
it's default gateway IP (192.168.1.1).
interface Vlan1
ip address 192.168.1.2 255.255.255.0
ip default-gateway 192.168.1.1
Configuring a switch
LAB2
Lab 2 - Switch interfaces configuration
Lab instructions
This lab will test your ability to configure speed, duplex, and vlan
settings on a cisco switch interfaces.
1. Connect to Switch0 using console interface and configure each
Switch0 fastethernet switchport for operation. Correct settings are :
- Port type : access port
- Speed : 100 Mbit/s
- Duplex mode : Full Duplex
- Autonegotiation disabled
Configuring a switch
LAB2
Solution
Connect to Switch0 using console
interface and configure each Switch0
fastethernet switchport for operation.
Switch(config)#interface FastEthernet0/1
switchport mode access
duplex full
speed 100
Switch(config)#interface FastEthernet0/2
switchport mode access
duplex full
speed 100
Switch(config)#interface FastEthernet0/3
switchport mode access
duplex full
speed 100
Switch(config)#interface FastEthernet0/4
switchport mode access
duplex full
speed 100
Configuring a switch
LAB2
Solution
Configuring a switch
LAB2
Configure those two links as trunk
lines without using trunk negotiation
between switches
On every interface that has to be
configured for trunk operation, configure
the following settings
Switch(config)#interface
GigabitEthernet1/X
Switch(config-if)#switchport mode trunk
Configuring a switch
LAB2
Another usefull ios command is "show
interfaces trunk" :
Switch#sh interfaces trunk
Port Mode Encapsulation
Status Native vlan
Gig1/2 on 802.1q
trunking 1
Port Vlans allowed on trunk
Gig1/2 1-1005
Port Vlans allowed and active in
management domain
Gig1/2 1
Port Vlans in spanning tree forwarding
state and not pruned
Gig1/2 1
Configuring a switchLab3
Lab 3 - VLAN and VTP configuration
Lab instructions
The aim of this lab is to check your ability
to configure VTP and VLAN on a small
network of four switches. This lab will help
you to prepare your ICND1 exam.
1.Configure the VTP-SERVER switch as a
VTP server
2.Connect to the 3 other switches and
configure them as VTP clients.
All links between swiches must be
configured as trunk lines.
3.Configure VTP domain name as
"TESTDOMAIN" and VTP password as
"cisco"
4.Configure VLAN 10 with name
"STUDENTS" and VLAN 50 with name
Solution
Configuring a switchLab3
Solution
Configuring a switchLab3
Solution
Configuring a switchLab3
Solution
Configuring a switchLab3
Solution
Configuring a switchLab3
Spanning tree
configuration
Build a network in packet tracer as shown
Configure trunks between 4 switches
Configure Switch0 and Switch1 as VTP servers for
domain Cisco and the other two switches as VTP
client;
Add VLAN 10 and VLAN 20 in Switch0. Are these two
VLAN added in other three switches?
Spanning tree
configuration
stp_lab01.pkz
Resilient network-config