Cisco Switch Configuration Basic Commands

Cisco Switch Configuration Basic Commands

What is a Cisco Switch

A Cisco switch is a connecting device that works on the data-link layer. It connects various devices in the same network. To determine where to send the data the Switches look at the destination Layer address. It receives the incoming data packets and redirects them to their destination. A switch sends the packet only to the destination address if the address is known otherwise it will broadcast the frames to all interfaces except the sending interface if the destination address is unknown.

The Switch works in a full-duplex mode which means both sender and receiver can communicate at the same time like a telephone call. The information is transferred in both directions means the simultaneous transmission of information between the switch and endpoint device when the switch is connected to an IP device.

Switch Basic Commands

Cisco Switch
Cisco Switch Configuration

Switch Interface

Switch
Switch Interface

Changing Switch Hostname

Assigning a name to a Switch helps to identify a Switch, and the default factory-assigned name is “Switch”.

Switch> enable

Switch# configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Switch (config) #hostname Network2

Network2 (config) #end

Network2#

%SYS-5-CONFIG_I: Configured from console by console

Network2#

Displaying Running-Configuration

Network2# show running-config

Switch Running-Configuration
Switch Running-Configuration

Switch Running-Configuration
Switch Running-Configuration

Switch Running-Configuration
Displaying Startup-Configuration

Network2# show startup-config

Startup-config is not present

Network2# copy running-config   startup-config

Copy Configuration
Copy run-config startup-config

Network2# show startup-config

Startup-Configuration
Startup-Configuration

Switch Hardware Information

Network2# show version

Cisco Switch
Cisco Switch Version

Cisco Switch Version


Enable and Line Passwords

Switches don’t contain Auxiliary Port and switch enable and line password is the same as configured for Routers.

Network2#

Network2# configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Network2 (config) # enable password Networking123

Network2 (config) # line console 0

Network2 (config-line) # password Ithome16

Network2 (config-line) #login

Network2 (config-line) #end

Network2#

System Flash Checking

Network2# show flash

Cisco Switch
Cisco Switch Flash

SwitchPort Status

Network2#show interfaces switchport

Switchport
Switchport Interface
Switchport
Switchport Interface
Switchport
Switchport Interface
Switchport
Switchport Interface


Switch Interface Status

Network2#show ip interface brief

Switch IP Interface
Switch IP Interface brief

Switch IP Interface
Switch IP Interface brief

Network2#show mac-address-table

Switch Mac-Address
Switch Mac-Address Table

Network2#show vlan  

Cisco Switch
Cisco Switch VLAN

Network2#show vtp status

VTP
VTP Status

Search Tags

  1. What are the commands for switch configuration?
  2. How do I configure a Cisco switch?
  3. What are the four basic configuration modes on a Cisco switch?
  4. Switch configuration commands in packet tracer

Get Packet Tracer Lab



Post a Comment

0 Comments