Skip to content
  • Home
  • Categories
    • Workstation
      • Laptop
      • Desktop
    • Information
    • Troubleshooting
    • Operating Systems
      • Windows
    • Guides
    • Fixes
    • Security
    • Backup
    • Scripting
    • Data Recovery
    • Facebook
    • Avaya
  • All The Legal
    • Disclaimer
    • Privacy Policy
Techtips.co.za
  • Home
  • Categories
    • Workstation
      • Laptop
      • Desktop
    • Information
    • Troubleshooting
    • Operating Systems
      • Windows
    • Guides
    • Fixes
    • Security
    • Backup
    • Scripting
    • Data Recovery
    • Facebook
    • Avaya
  • All The Legal
    • Disclaimer
    • Privacy Policy
  • Home
  • / Cisco /
  • Networks
  • /
  • CCNA basic switch configuration commands
Cisco . Networks

CCNA basic switch configuration commands

On January 14, 2012 by TechTips

Cisco basic configuration commands (CCNA)

Commanddescriptions
switch>?The ? works here the same as in a router Used to get the list of all available commands
switch>enableUser mode, same as a router
switch#Privileged mode
switch#disableLeaves privileged mode
switch>exitLeaves user mode
switch#show versionDisplays information about software and hardware.
switch#show flash:Displays information about flash memory (will work only for the 2900/2950 series).
switch#show mac-address-tableDisplays the current MAC address forwarding table.
switch#show running-configDisplays the current configuration in DRAM.
switch#show startup-configDisplays the current configuration in NVRAM.
switch#show vlanDisplays the current VLAN configuration.
switch#show interfacesDisplays the interface configuration and status of line: up/up, up/down, admin down.
switch#show interface vlan1Displays setting of virtual interface VLAN 1, the default VLAN on the switch.

To Reset Switch Configuration
Switch#delete flash:vlan.datRemoves the VLAN database from flash memory.
Delete filename [vlan.dat]?Press Enter
Delete flash:vlan.dat? [confirm]Press Enter
Switch#erase startup-configErases the file from NVRAM.
Switch#reloadRestarts the switch.

To Set Host Names
Switch#configure terminalMoves to global configuration mode
Switch(config)#hostname Switch1Creates a locally significant host name of the switch. This is the same command as the router.
Switch1(config)#
To Set Passwords
Switch(config)#enable password vinitaSets the enable password to vinita
Switch(config)#enable secret nikkiSets the encrypted secret password to nikki
Switch(config)#line console 0Enters line console mode
Switch(config-line)#loginEnables password checking
Switch(config-line)#password vinitaSets the password to vinita
Switch(config-line)#exitExits line console mode
Switch(config-line)#line vty 0 4Enters line vty mode for all five virtual ports
Switch(config-line)#loginEnables password checking
Switch(config-line)#password vinitaSets the password to vinita
Switch(config-line)#exitExits line vty mode
Switch(config)#

To Set IP Addresses and Default Gateways
Switch(config)#interface vlan1Enters the virtual interface for VLAN 1, the default VLAN on the switch
Switch(config-if)#ip address 192.168.0.10 255.255.255.0Sets the IP address and netmask to allow for remote access to the switch
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.0.5Allows IP information an exit past the local network

To Set Interface Descriptions
Switch(config)#interface fastethernet 0/1Enters interface configuration mode
Switch(config-if)#description Finance VLANAdds a description of the interface

To Set Duplex Operation
Switch(config)#interface fastethernet 0/1Moves to interface configuration mode
Switch(config-if)#duplex fullForces full-duplex operation
Switch(config-if)#duplex autoEnables auto-duplex config
Switch(config-if)#duplex halfForces half-duplex operation

To Set Operation Speed
Switch(config)#interface fastethernet 0/1
Switch(config-if)#speed 10Forces 10-Mbps operation
Switch(config-if)#speed 100Forces 100-Mbps operation
Switch(config-if)#speed autoEnables autospeed configuration

MAC Address Table
switch#show mac address-tableDisplays current MAC address forwarding table
switch#clear mac address-tableDeletes all entries from current MAC address forwarding table
switch#clear mac address-table dynamicDeletes only dynamic entries from table
Tags: basic, CCNA, commands, configuration, switch
  • 3G
  • Adobe Acrobat
  • Apple
  • Avaya
  • Backup
  • Backup
  • BES Server
  • Bitlocker
  • Blackberry
  • Cisco
  • Control Guard
  • ControlGuard
  • Data Recovery
  • Desktop
  • Document Template
  • Documents
  • Email Template
  • Enterprise Services
  • Exchange
  • Facebook
  • Fixes
  • FoxIT
  • General
  • Google+
  • Guides
  • Hardware
  • Headset
  • Helpdesk
  • Home Assistant
  • Home Automation
  • IIS7
  • Information
  • Java
  • KeyLogger
  • Laptop
  • Log Off
  • Logon
  • Mobile
  • Mobile / 3G
  • Multifunction Printers
  • Networks
  • Objectives and KPI's
  • Operating Systems
  • OSX
  • Outlook 2007
  • Outlook 2010
  • PGP Encryption
  • Phishing
  • Port/Device Control
  • Powershell
  • Printers & Imaging
  • Robocopy
  • RSA Security Console
  • Scripting
  • Security
  • Social Media
  • Software
  • Spiceworks
  • Support Apps
  • Teamviewer
  • Teamviewer
  • Troubleshooting
  • Twitter
  • Two-Step Verification
  • Virtualization
  • VoIP
  • VPN
  • Web and Internet
  • Windows
  • WordPress
  • Workstation
  • XAMPP – Apache

address automatic complete Avaya Backup basic Blackberry Blackberry Enterprise Server CCNA cisco commands config configuration Desktop Support email Email Signature Email Template Error Exchange Facebook Factory Defaults feature file Fix How to KPI Laptop Microsoft Office Outlook 2007 Microsoft Outlook Outlook Outlook 2007 Outlook 2010 password security Phishing Phishing Scams router S.M.A.R.T Security start Startup/Shutdown Template Tips troubleshooting windows Windows 7 Windows XP