SW1# show version
To see the configuration of the switch;
SW1# show running-config
or briefly
SW1# sh run
To see the configuration of all ports of the switch;
SW1# show interfaces status
To see the configuration of a port of the switch;
SW1# show running-config interface gigabitEthernet 1/0/4
“We are seeing the configuration of the 4th Port of the Switch”
To see the vlan;
SW1# show vlan
To see all Mac Addresses;
SW1# show mac address-table
To see which port a Mac Address is on;
“In cisco switches, mac ades are usually grouped as xxxx.xxxx.xxxx”
SW1# show mac address-table address xxxx.xxxx.xxxx
To see the Mac Address of the Device on a port;
“We are seeing the mac address of the 3rd port of the Switch”
SW1# show mac address-table interface gigabitEthernet 1/0/3
To see the status, instant and statistical information of all ports and vlans;
SW1# show interfaces
To see the status of a certain port only;
“We are seeing the status of the 2nd Port of the Switch”
SW1# show interfaces gigabitEthernet 1/0/2
To find ports closed by the switch due to an error;
SW1# show interfaces status err-disabled
To close a port;
“We are seeing how the 5th port of the Switch is closed”
SW1# configure terminal SW1(config)# interface gigabitEthernet 1/0/5 SW1(config-if)# shutdown
To open a closed port;
“We are seeing how the 6th port of the Switch is opened”
SW1# configure terminal SW1#(config)# interface gigabitEthernet 1/0/6 SW1(config-if)# no shutdown
Assigning vlan to the portal or changing the vlan for;
“We are seeing to throw the 2nd port of the Switch to 105 vlan”
SW1# configure terminal SW1(config)# interface gigabitEthernet 1/0/2 SW1(config-if)# switchport access vlan 105 SW1(config-if)# end
To write a description on a portal;
“We are seeing adding the camera port description to Port 4 of the Switch”
SW1# configure terminal SW1(config)# interface gigabitEthernet 1/0/4 SW1(config-if)# description kamera portu SW1(config-if)# end
To change the name of the Switch;
“We see changing the name of the switch to sw1”
SW1# configure terminal SW1(config)# hostname sw1
To save the switch’s configuration;
SW1# write memory
or briefly;
SW1# wr
To restart the Switch;
SW1# reload
To exit from the switch;
SW1# Exit
Author: Samed Gül