This is an old revision of the document!
ARISTA
To enable scp on the management vrf:
$ sudo ip netns exec ns-management bash
All the tech support files are periodically saved in /mnt/flash/schedule/tech-support
SYSLOG MESSAGES
See this link for a complete list of syslog messages.
Terminal console: always on
Terminal monitor:
term mon term no mon sh terminal ! To see which terminal I am on
To change the logging level:
For the console:
IOU1(config)#logging console ?
For the terminal (tty):
IOU1(config)#logging monitor
Logging to your terminal for debugging purposes. See this link.
CLI
bash
To see the SFP types - transceivers:
show interfaces phy detail ! long reply show transceiver status interface Ethernet14/1 ! specific reply show idprom transceiver
Troubleshooting with Arista switches link
ARISTA SCRIPTING
find-the-next-free-vlan-id
introduction-to-managing-eos-devices-annex-b-eos-tips-for-power-user
This is to list the IP addresses and have them ordered (-n order numbers , -t . user dot as separator -k i i order first by the i digits)
sh ip int brie | awk '{print $2}' | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
ARISTA MLAG
sh mlag sh mlag interfaces show mlag config-sanity
FIRST BOOT
localhost login: admin # and no password en zerotouch disable # the device reboots
EOS UPGRADE:
Arista firmware upgrade (not Aboot boot-loader for the switch (which is really a Linux system))
scp EOS-4.18.2F.swi admin@192.168.160.102://mnt/flash/EOS-4.18.2F.swi Or directly with WinSCP. Use H: as local drive dir flash: verify /md5 flash:EOS-4.25.5.1M.swi conf t boot system flash:EOS-4.25.5.1M.swi ! no need to save after ths reload now
ARISTA SHELL (LINUX):
https://eos.arista.com/traffic-generator-on-arista/#3_Generating_Multicast_traffic
en bash sudo -i tcpdump iperf.. mz..
AUTOMATION
ANSIBLE
Arista_Ansible_in_a_different_section
SWITCHES LINE:
Features:
TCPDUMP
External Link
Arista(config)#bash tcpdump -nevvvi any '((port 22) and (host 172.22.26.209))'
More examples here
CLOUDVISION (automation)
Streamed telemetry.
ARISTA VRRP (ALTERNATIVE)
https://www.arista.com/en/um-eos/eos-varp aka Anycast gateway.
Same MAC in both routers. First one picking up the packet will route it anyway.
BGP COMMUNITIES
! R1 route-map COMMUNITY permit 10 set community 100:999 # erases previous comms. use 'add' router bgp 100 network 94.70.40.0 mask 255.255.255.0 route-map COMMUNITY neighbor 80.50.0.2 send-community # comms. are transitive but we need this ! R2 ip community-list 10 permit 100:999 # when 'receiving' a community we need to 'define it' beforehand route-map R1_IN permit 10 match community 10 set local-preference 150 # we can also delete parts of the comm. with set community-list <comm> delete router bgp 200 neighbor 80.50.0.1 route-map R1_IN in ! sh bgp neighbors 10.1.0.14 received-routes detail