Professional Documents
Culture Documents
CISCO Basic Commands
CISCO Basic Commands
After entering ssh credentials you might encounter for some switches the mode is user ‘>’ not the
privilege mode ‘#’. Enable command will get you to the privilege mode and (conf t) is a global
configuration mode.
C13>enable
C13#conf t
C13(config)#
description 13/190
switchport access vlan 161
switchport mode access
switchport port-security violation restrict
switchport port-security mac-address sticky
switchport port-security mac-address sticky
switchport port-security
end
C13#conf t
C13(config)#int g 1/0/30
C13(config-if)#no switchport port-security mac-address sticky
C13(config-if)#end
C13#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
C13#sh run int g 1/0/30
Building configuration...
Show interface description and using “include” to fetch the specific information
C13#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C13(config)#int g 1/0/30
C13(config-if)#description 13/190
C13(config-if)#switchport mode access
C13(config-if)#switchport access vlan 161
C13(config-if)#switchport port-security mac-address sticky
C13(config-if)#switchport port-security violation restrict
C13(config-if)#switchport port-security
C13(config-if)#end
C13#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
C13#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C13(config)#default int g 1/0/30
Interface GigabitEthernet1/0/30 set to default configuration
Enabling and disabling the port(s) also used this to bounce POE enabled devices like cameras and
sip-phones
C13#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C13(config)#int g 1/0/30
C13(config-if)#shutdown
C13(config-if)#end
C13#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
C13#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C13(config)#int g 1/0/30
C13(config-if)#no shutdown
C13(config-if)#end
C13#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]