Page 1 of 1

cisco switch helpful commands

Posted: Sun Oct 05, 2025 4:17 pm
by zemerdon
cisco show ip

Code: Select all

show ip int
console connect

Code: Select all

sudo screen /dev/ttyUSB0 9600
remove stack members

Code: Select all

enable
Switch#show run | i provision
switch 1 provision ws-c2960x-24ps-l
switch 3 provision ws-c2960x-24ps-l
conf t
no switch 3 provision ws-c2960x-24ps-l
rename switch number

Code: Select all

conf t
switch 3 renumber 1

show live info in ssh

Code: Select all

terminal monitor
show ports status and description

Code: Select all

show int status
terminal no breaks

Code: Select all

terminal length 0
show trunk

Code: Select all

show int trunk
show routing

Code: Select all

show ip route
show ports brief

Code: Select all

show ip int br
show vlans

Code: Select all

show vlan br
remove vlan

Code: Select all

conf t
no vlan <vlanid>
set trunk port

Code: Select all

conf t
int GigabitEthernet 1/0/48
switchport mode trunk
save config

Code: Select all

copy run start
remove ssh timeout

Code: Select all

conf t
line vty 0 15
exec-timeout 0 0
reset cisco 8200 AP
make sure your in cisco shell, not controller mode.

Code: Select all

capwap ap erase all