We are showing here some important commands of switch configuration and switch troubleshooting commands.
Switch Configuration
#hostname name
#enable secret
#history size
#logging synchronous
#[no] logging console
#exec-timeout
#line console 0
#line vty
#password
#login local
#username secret password
#crypto key generate rsa [modulus 360-2048]
#ip domain-name domain
#transport input [telnet, ssh, all, none]
#interface vlan number
#ip address ip-address subnet-mask
#ip address dhcp
#ip default-gateway ip-address
#ip name-server dns1-ip dns2-ip
#interface type port-number
#interface range type port-start-port-end
#[no] shutdown
#speed [10, 100, 1000, auto]
#duplex [half, full, auto]
#description text
#no duplex
#no speed
#no description
#no debug all
#undebug all
#reload
#copy running-config startup-config
#write erase
#erase startup-config
#erase nvram:
#quit
#enable
#disable
#configure terminal
#switchport mode [access, trunk]
#switchport port-security mac-address mac-address
#switchport port-security mac-address sticky
#switchport port-security maximum value
#switchport port-security violation [protect, restrict, shutdown]
#vlan vlan-id
#name vlan-name
#[no] shutdown vlan vlan-id
#vtp mode [transparent, client, server]
#switchport mode [access, dynamic auto, dynamic desirable, trunk]
#switchport trunk encapsulation [dot1q, isl, negotiate]
#switchport trunk native vlan vlan-id
#switchport nonegotiate
#switchport voice vlan vlan-id
#switchport trunk allowed vlan [add, all, except, remove] vlan-list
Switch Troubleshooting
#show running-config
#show running-config | interface type number
#show running-config | begin line
#show mac address-table dynamic [interface type number]
#show mac address-table secure [interface type number]
#show mac address-table static [interface type number]
#show mac address-table dynamic address MAC-address
#show mac address-table dynamic interface interface-id
#show mac address-table count
#show mac address-table aging-time
#clear mac address-table dynamic
#show mac address-table
#show interfaces [interface type number] status
#show interfaces [interface type number]
#show port-security interface type number
#show port-security
#show interfaces interface-id switchport
#show interfaces interface-id trunk
#show vlan [brief, id, name, summary]
#show vlan
#show vtp status
#show interfaces description
#show dhcp lease
#show crypto key mypubkey rsa
#show ip ssh
#show ssh
#show interfaces vlan number
#show ip default-gateway
#terminal history-size
#show history
No comments:
Post a Comment