SlideShare a Scribd company logo
1 of 2
Basic Switch Configurations
Switch>
The “>” prompt is for user exec mode
It has very limited functions
Switch>enable
Switch#
The “#” prompt is for privileged exec mode
It is has extended rights to show commands
Switch#configure terminal
Switch(config)#
The “(config)#” prompt is for global
configuration mode
It makes configuration changes that affect the
entire device
Switch(config)#interface g0/0
Switch(config-if)#
The “(config-if)#” prompt is for the specific
configuration mode
Other examples are (config-router)# and (config-
line)#
It makes changes to only that portion of the
device
Name the device
Naming the device is important so, if you are
administering from a distance, you can
positively identify the device
Switch(config)#hostname NAME
NAME(config)#
Setting passwords
There are two categories of passwords. User-
mode and enable.
User-mode on set on where they originate.
Console port, telnet, or dial up.
Switch(config)#line console 0
/line vty 0 15 / line aux 0
Switch(config-line)#password Incorrect
Switch(config-line)#login
Enable are set on the command used to enter
them
Switch(config)#enable password LetMeIn
/enable secret SHHitsAsecret
Banner
The banner should be a warning that access will
be monitored
Switch(config)#banner motd *
Authorized Access Only*
Assigning IP Address
IPs can be assigned to a specific interface or a
VLAN
Switch(config)#interface vlan 25
Switch(config-if)#ip address 192.168.25.2
255.255.255.0
Switch(config-if)#no shutdown
Default Gateway
The default gateway is a layer three device on
the same subnet. Computers have default
gateways and switches do too. It is where the
device will send network traffic not in the same
network.
Switch(config)#ip default-gateway 192.168.25.1
VLANs
Virtual Local Area Networks (VLANs) split up
the ports of a switch into different networks.
Switch(config)#interface f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 25
Switch(config-if)#no shutdown
Switch#vlan database
Switch(vlan)#vlan 1 name Admin
Switch(vlan)#vlan 25 name Users
Trunking
Trunking allows multiple VLANs to travel
through the same cable
Switch(config)#interface g0/0
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk
encapsulation dot1q
Usernames
Usernames create logins on the device with
different passwords with different rights
Swtich(config)#username Robert secret 5 FClub
Port Security
Port security restricts people from plugging any
computer into a switch and being granted access
Shutdown all ports not in use
Switch(config)#interface range f0/13 – 48
Switch(config-if-range)#shutdown
Switch(config)#interface range f0/1 – 48
Switch(config-if-range)#switchport port-security
Switch(config-if-range)#switchport port-security
maximum 2
Switch(config-if-range)#switchport port-security
mac-address sticky
Switch(config-if-range)#swtichport port-security
violation shutdown

More Related Content

What's hot

IOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsIOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsAlejandro Marin
 
How to configure cisco router password
How to configure cisco router passwordHow to configure cisco router password
How to configure cisco router passwordIT Tech
 
Cisco router-commands
Cisco router-commandsCisco router-commands
Cisco router-commandsRobin Rohit
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet3Anetwork com
 
The bryant advantage 150 commands
The bryant advantage 150 commandsThe bryant advantage 150 commands
The bryant advantage 150 commandsAreej Khasawneh
 
Acn Experiment No 3
Acn Experiment No 3Acn Experiment No 3
Acn Experiment No 3Garima Singh
 
CCNA ppt Day 7
CCNA ppt Day 7CCNA ppt Day 7
CCNA ppt Day 7VISHNU N
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview3Anetwork com
 
Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)DH Da Lat
 
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric VanderburgCCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric VanderburgEric Vanderburg
 
Ccna lab manual[1]
Ccna lab manual[1]Ccna lab manual[1]
Ccna lab manual[1]Umair Ahmed
 
How to obtain ip address from a different network dhcp
How to obtain ip address from a different network dhcpHow to obtain ip address from a different network dhcp
How to obtain ip address from a different network dhcptcpipguru
 
Acn Experiment No 6
Acn Experiment No 6Acn Experiment No 6
Acn Experiment No 6Garima Singh
 

What's hot (17)

IOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsIOS Cisco - Cheat sheets
IOS Cisco - Cheat sheets
 
ccna cheat_sheet
ccna cheat_sheetccna cheat_sheet
ccna cheat_sheet
 
How to configure cisco router password
How to configure cisco router passwordHow to configure cisco router password
How to configure cisco router password
 
Cisco router-commands
Cisco router-commandsCisco router-commands
Cisco router-commands
 
Ciso ospf
Ciso ospfCiso ospf
Ciso ospf
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet
 
The bryant advantage 150 commands
The bryant advantage 150 commandsThe bryant advantage 150 commands
The bryant advantage 150 commands
 
Acn Experiment No 3
Acn Experiment No 3Acn Experiment No 3
Acn Experiment No 3
 
CCNA ppt Day 7
CCNA ppt Day 7CCNA ppt Day 7
CCNA ppt Day 7
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview
 
Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)
 
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric VanderburgCCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
 
Router commands
Router commandsRouter commands
Router commands
 
9210 commissioning manual
9210 commissioning manual9210 commissioning manual
9210 commissioning manual
 
Ccna lab manual[1]
Ccna lab manual[1]Ccna lab manual[1]
Ccna lab manual[1]
 
How to obtain ip address from a different network dhcp
How to obtain ip address from a different network dhcpHow to obtain ip address from a different network dhcp
How to obtain ip address from a different network dhcp
 
Acn Experiment No 6
Acn Experiment No 6Acn Experiment No 6
Acn Experiment No 6
 

Viewers also liked

Robert D Kozak-Resume 2015
Robert D Kozak-Resume 2015Robert D Kozak-Resume 2015
Robert D Kozak-Resume 2015Robert Kozak
 
งานคอมพิวเตอร์ ใบงานที่2 8
งานคอมพิวเตอร์ ใบงานที่2 8งานคอมพิวเตอร์ ใบงานที่2 8
งานคอมพิวเตอร์ ใบงานที่2 8ploypapas45091
 
2014 Taverna tutorial REST and Biocatalogue
2014 Taverna tutorial REST and Biocatalogue2014 Taverna tutorial REST and Biocatalogue
2014 Taverna tutorial REST and BiocataloguemyGrid team
 
Durga soft SCJP part-1
Durga soft SCJP part-1Durga soft SCJP part-1
Durga soft SCJP part-1Satya Johnny
 
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014Vlaamse Bijbelstichting
 

Viewers also liked (9)

Robert D Kozak-Resume 2015
Robert D Kozak-Resume 2015Robert D Kozak-Resume 2015
Robert D Kozak-Resume 2015
 
งานคอมพิวเตอร์ ใบงานที่2 8
งานคอมพิวเตอร์ ใบงานที่2 8งานคอมพิวเตอร์ ใบงานที่2 8
งานคอมพิวเตอร์ ใบงานที่2 8
 
Powertpoint tic
Powertpoint tic Powertpoint tic
Powertpoint tic
 
зош №13
зош №13зош №13
зош №13
 
S04602122126
S04602122126S04602122126
S04602122126
 
Metodología
MetodologíaMetodología
Metodología
 
2014 Taverna tutorial REST and Biocatalogue
2014 Taverna tutorial REST and Biocatalogue2014 Taverna tutorial REST and Biocatalogue
2014 Taverna tutorial REST and Biocatalogue
 
Durga soft SCJP part-1
Durga soft SCJP part-1Durga soft SCJP part-1
Durga soft SCJP part-1
 
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014
Tobit, een novelle die tot de verbeelding spreekt - Didachè 2014
 

Similar to Basic Switch Configurations

labffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxlabffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxBinyamBekeleMoges
 
cisco ccna cheat_sheet
cisco ccna cheat_sheetcisco ccna cheat_sheet
cisco ccna cheat_sheetGuntaka Reddy
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching1 2d
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching1 2d
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching1 2d
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemBetselove
 
Resumen vlan configuracion basica
Resumen vlan configuracion basicaResumen vlan configuracion basica
Resumen vlan configuracion basicaRodrigo Guerra
 
How to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guideHow to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guideIT Tech
 
10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOsNhóc Nhóc
 
Cisco router configuration tutorial
Cisco router configuration tutorialCisco router configuration tutorial
Cisco router configuration tutorialIT Tech
 
Basic switching concepts and configuration
Basic switching concepts and configurationBasic switching concepts and configuration
Basic switching concepts and configurationMohammedseleim
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchHamed Moghaddam
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Netwax Lab
 
Chapter 14 - Sw Conf
Chapter 14 - Sw ConfChapter 14 - Sw Conf
Chapter 14 - Sw Confphanleson
 
CCNA at a glance
CCNA at a glanceCCNA at a glance
CCNA at a glanceVikas Raut
 
Lab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingLab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingMuhd Mu'izuddin
 

Similar to Basic Switch Configurations (20)

labffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxlabffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptx
 
Nat report2
Nat report2Nat report2
Nat report2
 
Ccna command
Ccna commandCcna command
Ccna command
 
cisco ccna cheat_sheet
cisco ccna cheat_sheetcisco ccna cheat_sheet
cisco ccna cheat_sheet
 
Mod11
Mod11Mod11
Mod11
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching
 
Comandos routing switching
Comandos routing switchingComandos routing switching
Comandos routing switching
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystem
 
Resumen vlan configuracion basica
Resumen vlan configuracion basicaResumen vlan configuracion basica
Resumen vlan configuracion basica
 
How to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guideHow to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guide
 
10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs
 
CCNA presentation.
CCNA presentation.CCNA presentation.
CCNA presentation.
 
Cisco router configuration tutorial
Cisco router configuration tutorialCisco router configuration tutorial
Cisco router configuration tutorial
 
Basic switching concepts and configuration
Basic switching concepts and configurationBasic switching concepts and configuration
Basic switching concepts and configuration
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer Switch
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)
 
Chapter 14 - Sw Conf
Chapter 14 - Sw ConfChapter 14 - Sw Conf
Chapter 14 - Sw Conf
 
CCNA at a glance
CCNA at a glanceCCNA at a glance
CCNA at a glance
 
Lab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingLab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routing
 

Basic Switch Configurations

  • 1. Basic Switch Configurations Switch> The “>” prompt is for user exec mode It has very limited functions Switch>enable Switch# The “#” prompt is for privileged exec mode It is has extended rights to show commands Switch#configure terminal Switch(config)# The “(config)#” prompt is for global configuration mode It makes configuration changes that affect the entire device Switch(config)#interface g0/0 Switch(config-if)# The “(config-if)#” prompt is for the specific configuration mode Other examples are (config-router)# and (config- line)# It makes changes to only that portion of the device Name the device Naming the device is important so, if you are administering from a distance, you can positively identify the device Switch(config)#hostname NAME NAME(config)# Setting passwords There are two categories of passwords. User- mode and enable. User-mode on set on where they originate. Console port, telnet, or dial up. Switch(config)#line console 0 /line vty 0 15 / line aux 0 Switch(config-line)#password Incorrect Switch(config-line)#login Enable are set on the command used to enter them Switch(config)#enable password LetMeIn /enable secret SHHitsAsecret Banner The banner should be a warning that access will be monitored Switch(config)#banner motd * Authorized Access Only*
  • 2. Assigning IP Address IPs can be assigned to a specific interface or a VLAN Switch(config)#interface vlan 25 Switch(config-if)#ip address 192.168.25.2 255.255.255.0 Switch(config-if)#no shutdown Default Gateway The default gateway is a layer three device on the same subnet. Computers have default gateways and switches do too. It is where the device will send network traffic not in the same network. Switch(config)#ip default-gateway 192.168.25.1 VLANs Virtual Local Area Networks (VLANs) split up the ports of a switch into different networks. Switch(config)#interface f0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 25 Switch(config-if)#no shutdown Switch#vlan database Switch(vlan)#vlan 1 name Admin Switch(vlan)#vlan 25 name Users Trunking Trunking allows multiple VLANs to travel through the same cable Switch(config)#interface g0/0 Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk encapsulation dot1q Usernames Usernames create logins on the device with different passwords with different rights Swtich(config)#username Robert secret 5 FClub Port Security Port security restricts people from plugging any computer into a switch and being granted access Shutdown all ports not in use Switch(config)#interface range f0/13 – 48 Switch(config-if-range)#shutdown Switch(config)#interface range f0/1 – 48 Switch(config-if-range)#switchport port-security Switch(config-if-range)#switchport port-security maximum 2 Switch(config-if-range)#switchport port-security mac-address sticky Switch(config-if-range)#swtichport port-security violation shutdown