====== EOS ====== ==== CHECKSUM ==== # verify /sha512 flash:SMART-eMMC-fw-0x20-v1_0_0.swix ==== CONFIG SESSIONS ==== # commit # abort // discard all the changes and exit config session #show session-config diffs // diff #show session-config named NAME_1 // shows session config Example diff: -hostname AMS30-LAB-7280-01 // "-" - what's in the startup-config +hostname R1 // "+" - what's in the running-config ==== RESTORE ==== Aboot#fullrecover // Erases everything ==== SCHEDULER ==== schedule clear_evpn_blacklist interval 5 timeout 1 max-log-files 1 command clear bgp evpn host-flap ==== SCP ==== Allow SCP: username Admin privilege 15 secret root123 aaa authorization exec default local Example copying to Arista switch using an SCP: scp EOS-4.21.5F.swi admin@192.168.160.102://mnt/flash/EOS-4.21.5F.swi ==== EOS UPGRADE ==== localhost(config)#boot system flash:EOS-4.32.3M.swi localhost(config)#exit localhost# localhost#show boot-config Software image: flash:/EOS-4.32.3M.swi ==== SECRET BOOT IMAGE ==== /mnt/flash/.boot-image.swi Aboot# boot /mnt/flash/.boot-image.swi ==== PORT SECURITY ==== To delete an address from the port security MAC cache, the address must be removed from the forwarding database prior to executing the “clear port-security” command: Arista# no mac address-table static 0000.aaaa.bbbb vlan 52 interface ethernet 4/1/1 Arista# clear port-security interface Ethernet 4/1/1 ==== EXTENSIONS ==== #dir extension: // folder where you need to put an extension #extension WORD // installing an extension #show extensions // show installed extensions #copy installed-extensions boot-extensions // make it permanent ==== TCPDUMP ==== * Only control plane! * But, we can redirect some data plane traffic to the CPU :) monitor session 1 source Ethernet1/1 monitor session 1 destination Cpu ==== DEFAULTING ALL INTERFACES ==== default interface ethernet 1-$ ==== LOGING USING CERTIFICATE ==== Arista(config)#username privilege 15 secret # Create account Arista(config)#username sshkey file flash:testkey.pub # Associate the SSH key Generate certificate and upload it on the switch: $ ssh-keygen -t ecdsa -b 521 -f aristakey $ scp aristakey.pub admin@leaf-ams://mnt/flash/aristakey.pub Verify connectivity: ssh -i aristakey Arista