List current active ports: sh interfa status
Track a MAC address: show mac address-table | include 0050.568a.94c3
Reboot a specific switch's stack: sh switch detail
+ reload slot x
QoS disabling:
conf t
no mls qos
no mls qos rewrite ip dscpexit
write mem
Get the conf of specific port: show running-config interface GigabitEthernet 1/0/51
Connect from a Linux: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 USER@IP.ADDR
Track an IP:
sh ip arp IP.ADDR
sh mac address-table
Configuration export - setup FTP
apt install vsftpd
systemctl start vsftpd
useradd -m cisco_bck
passwd cisco_bck (ENTER_PASSWORD)
mv /etc/vsftpd.conf /etc/vsftpd.conf.orig
cat << EOF >> /etc/vsftpd.conf
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
pasv_enable=Yes
pasv_min_port=10000
pasv_max_port=10100
allow_writeable_chroot=YES
EOF
CISCO01>enable
CISCO01#conf t
CISCO01#ip ftp username cisco_bck
CISCO01#ip ftp password <PASSWORD>
CISCO01#end
CISCO01#copy running-config ftp:
Address or name of remote host []? REMOTE_IP
Destination filename [cisco01-confg]?
Writing cisco01-confg !