www.it-ebooks.info www.it-ebooks.info Arista Warrior Gary A Donahue www.it-ebooks.info Arista Warrior by Gary A Donahue Copyright © 2013 Gary Donahue All rights reserved Printed in the United States of America Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://my.safaribooksonline.com) For more information, contact our corporate/ institutional sales department: 800-998-9938 or corporate@oreilly.com Editors: Mike Loukides and Meghan Blanchette Production Editor: Kristen Borg Copyeditor: Absolute Services, Inc October 2012: Proofreader: Kiel Van Horn Indexer: Angela Howard Cover Designer: Karen Montgomery Interior Designer: David Futato Illustrator: Robert Romano First Edition Revision History for the First Edition: 2012-10-03 First release See http://oreilly.com/catalog/errata.csp?isbn=9781449314538 for release details Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc Arista Warrior, the image of an African Harrier-Hawk, and related trade dress are trademarks of O’Reilly Media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trade mark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein ISBN: 978-1-449-31453-8 [LSI] www.it-ebooks.info For my mother Joyce A Grier November 18, 1931 – July 20, 2012 http://www.gad.net/mother We all miss you www.it-ebooks.info www.it-ebooks.info Table of Contents Preface xi Why Arista? A Brief History of Arista Key Players The Needs of a Data Center Data Center Networking The Case for Low Latency Network-Based Storage Arista Delivers Hardware EOS Bash SysDB MLAG VARP LANZ VM Tracer ZTP Email Event Scheduler TCP Dump Event Handler Event Monitor Extending EOS CloudVision 1 6 7 7 8 8 9 9 10 10 10 Buffers 11 Merchant Silicon 23 v www.it-ebooks.info The Debate Arista and Merchant Silicon Arista Product ASICs 23 24 25 Fabric Speed 29 Arista Products 39 Power Airflow Optics EOS Top-of-Rack Switches One-Gigabit Switches Ten-Gigabit Switches: 7100 Series Ten-Gigabit Switches: 7050 Series Chassis Switches Arista 7500 Series 39 40 41 42 43 43 44 47 51 51 Introduction to EOS 57 SysDB Using EOS 58 59 Upgrading EOS 71 LLDP 79 Bash 85 10 SysDB 91 11 Python 99 12 MLAG 107 MLAG Overview Configuring MLAG MLAG ISSU 107 109 123 13 Spanning Tree Protocol 127 MST MST Terminology Why Pruning VLANs Can Be Bad vi | Table of Contents www.it-ebooks.info 128 146 149 Spanning Tree and MLAG 151 14 First Hop Redundancy 155 VRRP Basic Configuration Miscellaneous VRRP Stuff VARP Configuring VARP 155 157 166 167 170 15 Routing 175 RIP OSPF BGP So What? 177 179 181 182 16 Access Lists 185 Basic IP ACLs Advanced IP ACLs MAC ACLs Applying ACLs 188 192 196 197 17 Quality of Service 199 Configuring QoS Configuring Trust Configuring Defaults Mapping Interface Shaping Shaping tx-queues Prioritizing tx-queues Showing QoS Information Petra-Based Switches Trident-Based Switches FM4000-Based Switches In Conclusion 203 203 204 206 208 209 209 213 214 218 219 222 18 Aboot 223 19 Email 237 20 LANZ 245 21 sFlow 257 Table of Contents www.it-ebooks.info | vii Configuring sFlow Showing sFlow Information 258 259 22 VM Tracer 263 CDP Weirdness 273 23 Scheduler 279 24 TCP Dump 287 Unix EOS 287 292 25 Zero-Touch Provisioning 299 Cancelling ZTP Disabling ZTP Booting with ZTP 301 302 305 26 event-handler 311 Description Configuration 311 313 27 Event Monitor 317 Using Event Monitor ARP MAC Route Advanced Usage Configuring Event Monitor 317 318 321 323 327 329 28 Extending EOS 333 29 CloudVision 341 Description Configuring and Using CloudVision Groups Monitoring CloudVision 341 342 352 360 30 Troubleshooting 365 Performance Monitoring Tracing Agents (Debugging) Useful Examples Turn It Off! viii | Table of Contents www.it-ebooks.info 365 368 375 376 ...www.it-ebooks.info Arista Warrior Gary A Donahue www.it-ebooks.info Arista Warrior by Gary A Donahue Copyright © 2013 Gary Donahue All rights reserved... with building an Arista network My goal in writing Arista Warrior is to explain complex ideas in an easy-to-understand manner I’ve taught a few xi www.it-ebooks.info classes on Arista switches,... Contents www.it-ebooks.info 365 368 375 376 Arista Support 377 31 Aristacisms 379 Marketing Glossary Arista- Specific Configuration Items