operating cisco ios

draft

basics

see some logs

show logging history 

who’s in?

who
show sessions
!clear line vty
where

review config

show vlan
show run
show startup-config
show running-config
show running-config interface
show running-config vlan
show interface gi0/1 trunk
!show archive config diff

clear config on an interface

show interface fa0/2
default interface fa0/2

deal with macs

show remotely connected MAC addresses

show mac address-table
show mac address-table dynamic 
show mac address-table interface fa0/X

how they are being resolved

show ip arp

deal with trunks

show interfaces trunk

troubleshooting

in case some config element got stuck e.g. vlan I had no other choice than to

more nvram:startup-config
more flash:config.text

copy nvram:startup-config tftp

cd /tftpboot/upload/
mv SW-config ../
cd ../
chown root:root SW-config
chmod 644 SW-config
cp SW-config SW-config.dist
vi SW-config

and push it back over to the switch

copy tftp://x.x.x.x/SW-confg nvram:startup-config
reload

resources

Delete a configuration of an interface https://community.cisco.com/t5/switching/delete-a-configuration-of-an-interface/td-p/1495108 https://community.cisco.com/t5/switching/is-there-a-way-to-quickly-remove-config-from-a-range-of-ports/td-p/2024486 https://community.cisco.com/t5/switching/clear-config-interface/td-p/1478260 https://community.cisco.com/t5/switching/clear-the-config-off-an-interface/td-p/1042596

macs

Cisco switch, how to determine MAC address of connected device or wake device up? https://serverfault.com/questions/338462/cisco-switch-how-to-determine-mac-address-of-connected-device-or-wake-device-up#355555

troubleshooting

Config.text and Startup-config Files in Cisco Switches https://learningnetwork.cisco.com/thread/98141

Edit Cisco startup-config https://ori0nx.wordpress.com/2010/12/31/edit-cisco-startup-config/

erasing a config and vlan.dat file in Catalyst 4507R Switch https://community.cisco.com/t5/switching/erasing-a-config-and-vlan-dat-file-in-catalyst-4507r-switch/td-p/2275969


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml