VXLAN EVPN Fabric and automation using Ansible

Similar documents
Automation and Programmability using Cisco Open NXOS and DevOps Tools

NXOS in the Real World Using NX-API REST

Configuring VXLAN EVPN Multi-Site

Configuring VXLAN EVPN Multi-Site

Introduction to External Connectivity

Unicast Forwarding. Unicast. Unicast Forwarding Flows Overview. Intra Subnet Forwarding (Bridging) Unicast, on page 1

LTRDCT-2781 Building and operating VXLAN BGP EVPN Fabrics with Data Center Network Manager

Provisioning Overlay Networks

Hierarchical Fabric Designs The Journey to Multisite. Lukas Krattiger Principal Engineer September 2017

NetDevOps Style Configuration Management for the Network

Deploying Cloud-Agnostic Applications with Cisco CloudCenter

Creating and Managing Admin Domains

Optimizing Layer 2 DCI with OTV between Multiple VXLAN EVPN Fabrics (Multifabric)

Data Center Configuration. 1. Configuring VXLAN

Configuring VXLAN EVPN Multi-Site

Deploy Application Load Balancers with Source Network Address Translation in Cisco DFA

Cisco Virtual Topology System Release Service Provider Data Center Cisco Knowledge Network. Phil Lowden (plowden) October 9, 2018

Provisioning Overlay Networks

MP-BGP VxLAN, ACI & Demo. Brian Kvisgaard System Engineer, CCIE SP #41039 November 2017

Building Data Center Networks with VXLAN EVPN Overlays Part I

Designing Mul+- Tenant Data Centers using EVPN- IRB. Neeraj Malhotra, Principal Engineer, Cisco Ahmed Abeer, Technical Marke<ng Engineer, Cisco

Segment Routing on Cisco Nexus 9500, 9300, 9200, 3200, and 3100 Platform Switches

VXLAN Cisco and/or its affiliates. All rights reserved. Cisco Public

BGP in the Enterprise for Fun and (fake) Profit: A Hands-On Lab

Cisco VTS. Enabling the Software Defined Data Center. Jim Triestman CSE Datacenter USSP Cisco Virtual Topology System

Cisco SD-Access Hands-on Lab

PSOACI Why ACI: An overview and a customer (BBVA) perspective. Technology Officer DC EMEAR Cisco

VXLAN Design with Cisco Nexus 9300 Platform Switches

Introduction to Cisco Virtual Topology System DP Ayyadevara, Product Manager, Cloud Virtualization Cisco PSOSDN-1050

EXTREME VALIDATED DESIGN. Network Virtualization in IP Fabric with BGP EVPN

Cisco UCS Director and ACI Advanced Deployment Lab

Feature Information for BGP Control Plane, page 1 BGP Control Plane Setup, page 1. Feature Information for BGP Control Plane

Implementing VXLAN in DataCenter

Ethernet VPN (EVPN) in Data Center

Virtual Extensible LAN and Ethernet Virtual Private Network

Cisco ACI Multi-Pod/Multi-Site Deployment Options Max Ardica Principal Engineer BRKACI-2003

Cisco SD-WAN (Viptela) Migration, QoS and Advanced Policies Hands-on Lab

Introduction to Cisco Virtual Topology System (VTS) Vijay Arumugam Kannan - Product Manager, VTS

Implementing VXLAN. Prerequisites for implementing VXLANs. Information about Implementing VXLAN

IP Fabric Reference Architecture

VXLAN Deployment Use Cases and Best Practices

Solution Guide. Infrastructure as a Service: EVPN and VXLAN. Modified: Copyright 2016, Juniper Networks, Inc.

Border Provisioning Use Case in VXLAN BGP EVPN Fabrics - Multi-Site

ACI Multi-Site Architecture and Deployment. Max Ardica Principal Engineer - INSBU

VXLAN EVPN Multihoming with Cisco Nexus 9000 Series Switches

Cisco Virtual Topology System (VTS)

Network Virtualization in IP Fabric with BGP EVPN

Serviceability of SD-WAN

Cisco WAN Automation Engine (WAE) Network Programmability with Segment Routing

Nexus 9000/3000 Graceful Insertion and Removal (GIR)

Contents. Introduction. Prerequisites. Requirements. Components Used

CloudCenter for Developers

Introduction to Cisco SD- WAN (Viptela)

Introduction to OpenConfig

Contents. EVPN overview 1

Attilla de Groot Attilla de Groot Sr. Systems Engineer, HCIE #3494 Cumulus Networks

HPE FlexFabric 5940 Switch Series

SP Datacenter fabric technologies. Brian Kvisgaard System Engineer CCIE SP #41039

VXLAN Multipod Design for Intra-Data Center and Geographically Dispersed Data Center Sites

Implementing DCI VXLAN Layer 3 Gateway

Pluribus Data Center Interconnect Validated

Traffic Load Balancing in EVPN/VXLAN Networks. Tech Note

Configuring VXLAN Multihoming

Cloud Data Center Architecture Guide

Service Graph Design with Cisco Application Centric Infrastructure

VXLAN EVPN Automation with ODL NIC. Presented by: Shreyans Desai, Serro Yrineu Rodrigues, Lumina Networks

Consuming Model-Driven Telemetry

DEVNET Introduction to Git. Ashley Roach Principal Engineer Evangelist

Configure EVPN IRB EVPN IRB

Evolved Campus Core: An EVPN Framework for Campus Networks. Vincent Celindro JNCIE #69 / CCIE #8630

Cisco SD-Access Building the Routed Underlay

DHCP Relay in VXLAN BGP EVPN

Data Centre Interconnect with OTV and Other Solutions

Multi-site Datacenter Network Infrastructures

DevOps CICD for VNF a NetOps Approach

Deploying Carrier Ethernet Services

Cisco ACI Multi-Pod Design and Deployment

IP fabrics - reloaded

Technical Brief. Achieving a Scale-Out IP Fabric with the Adaptive Cloud Fabric Architecture.

DHCP Relay in VXLAN BGP EVPN

Huawei CloudEngine Series. VXLAN Technology White Paper. Issue 06 Date HUAWEI TECHNOLOGIES CO., LTD.

Introducing Cisco Network Assurance Engine

Routing Underlay and NFV Automation with DNA Center

Your API Toolbelt Tools and techniques for testing, monitoring, and troubleshooting REST API requests

DevNet Workshop-Hands-on with CloudCenter and Jenkins

Customer s journey into the private cloud with Cisco Enterprise Cloud Suite

Cisco UCS Agentless Configuration Management Ansible or Microsoft DSC

Cloud-Ready WAN For IAAS & SaaS With Cisco s Next- Gen SD-WAN

Hybrid Cloud Automation using Cisco CloudCenter API

Empower your testing with Cisco Test Automation Solution Featuring pyats & Genie

Git, Atom, virtualenv, oh my! Learn about dev tools to live by!

Stateless Multicast with Bit Indexed Explicit Replication

VRF, MPLS and MP-BGP Fundamentals

NSO in Brownfield: Fully Automated One-Click Reconciliation

H3C S6520XE-HI Switch Series

BESS work on control planes for DC overlay networks A short overview

Automation with Meraki Provisioning API

Cisco Container Platform

Running RHV integrated with Cisco ACI. JuanLage Principal Engineer - Cisco May 2018

Cisco Virtual Topology System (VTS) 2.3 User Guide

Transcription:

VXLAN EVPN Fabric and automation using Ansible Faisal Chaudhry, Principal Architect Umair Arshad, Sr Network Consulting Engineer Lei Tian, Solution Architecture

Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find this session in the Cisco Live Mobile App 2. Click Join the Discussion 3. Install Spark or go directly to the space 4. Enter messages/questions in the space cs.co/ciscolivebot# 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Agenda Intro to VXLAN BGP EVPN Intro to Ansible Lab Topology Lab tasks 1. Configure VXLAN BGP EPVN using CLI 2. Configure VXLAN BGP EVPN using Ansible + NXOS modules 3. Configure VXLAN BGP EVPN using Ansible + Jinja2 template

Team Members Name Email Role Faisal Chaudhry Umair Arshad Lei Tian 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 5

Survey/Spark Visual assets available for youruse Wide range of photos Multiple types of icons bx.cisco.com Cisco Brand Exchange 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 6

Intro to VXLAN BGP EVPN

Intro to VXLAN BGP EVPN Open, Scalable Fabric Refresh for VXLAN Layer 2 overlay technology on Layer 3 underlay VXLAN segment is identified by 24-bit segment ID No control plane Flood and Lean VXLAN BGP EVPN Use MP-BGP with EVPN AF to distribute L2/L3 reachability information Distributed Anycast Gateway Symmetric IRB VPC Anycast VTEP ARP suppression Multi-Tenancy 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 8

VXLAN BGP EVPN Terminology VTEP: Hardware or software element at the edge for VXLAN encapsulation VNI: a logical network instance for layer 2 broadcast domain Fabric Underlay VTEP Border Leaf VTEP VNID: 24 bit segment ID Anycast Gateway: distributed default gateway function across al leaf nodes WAN/ DCI VXLAN L2 Gateway: gateway translate VLAN to VXLAN and VXLAN to VLAN in same BD VXLAN L3 Gateway: gateway translate VXLAN to VXLAN or VXLAN to VLAN in different BD VNI Anycast Gateway VXLAN L2/L3 Gateway Overlay 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9

VXLAN BGP EVPN Host reachability BGP update 1. Host 172.24.140.10 comes online Leaf-1 IP ARP Table Address Age MAC Address Interface Flags 172.21.140.10 00:03:48 0050.56a0.7630 Vlan140 Leaf-1 mac table VLAN MAC Address Type age Secure NTFY Ports ---------+-----------------+--------+---------+------+----+------------------ 140 0050.56a0.7630 dynamic 00:04:00 F F Eth1/3 HWaddr 00:50:56:A0:76:30 inet addr:172.21.140.10 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 10

VXLAN BGP EVPN Host reachability BGP update 1. Host 172.24.140.10 comes online 2. VTEP leaf-1 install MAC and MAC-IP into L2RIB show l2route evpn mac evi 140 Topology Mac Address Prod Flags Seq No Next-Hops 140 0050.56a0.7630 Local L, 0 Eth1/3 show l2route evpn mac-ip evi 140 Topology Mac Address Prod Flags Seq No Next-Hops 140 0050.56a0.7630 HMM -- 0 172.21.140.10 Local HWaddr 00:50:56:A0:76:30 inet addr:172.21.140.10 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 11

VXLAN BGP EVPN Host reachability BGP update 1. Host 172.24.140.10 comes online 2. VTEP leaf-1 install MAC and MAC-IP into L2RIB 3. VTEP leaf-1 installs host mac-ip to L2VPN EVPN show bgp l2vpn evpn vni-id 50140 Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 192.168.0.8:32907 (L2VNI 50140) *>l[2]:[0]:[0]:[48]:[0050.56a0.7630]:[32]:[172.21.140.10]/272 192.168.0.18 100 32768 i HWaddr 00:50:56:A0:76:30 inet addr:172.21.140.10 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 12

VXLAN BGP EVPN Host reachability BGP update 1. Host 172.24.140.10 comes online 2. VTEP leaf-1 install MAC and MAC-IP into L2RIB 3. VTEP leaf-1 installs host mac-ip to L2VPN EVPN 4. VTEP leaf-1 advertises L2/L3 VNI routes to its EVPN neighbors sh bgp l2 evpn nei 192.168.0.6 advertised-routes Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 192.168.0.8:32907 (L2VNI 50140) *>l[2]:[0]:[0]:[48]:[0050.56a0.7630]:[32]:[172.21.140.10]/272 192.168.0.18 100 32768 i HWaddr 00:50:56:A0:76:30 inet addr:172.21.140.10 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13

VXLAN BGP EVPN Host reachability BGP update 1. Host 172.24.140.10 comes online 2. VTEP leaf-1 install MAC and MAC-IP into L2RIB 3. VTEP leaf-1 installs host mac-ip to L2VPN EVPN 4. VTEP leaf-1 advertises L2/L3 VNI routes to its EVPN neighbors 5. VTEP Spine nodes advertise L2/L3 VNI route to all other leaf nodes sh bgp l2vpn evpn 172.21.140.10 BGP routing table information for VRF default, address family L2VPN EVPN Route Distinguisher: 192.168.0.8:32907 BGP routing table entry for [2]:[0]:[0]:[48]:[0050.56a0.7630]:[32]:[172.21.140.10]/272, version 10 Paths: (1 available, best #1) Flags: (0x000202) on xmit-list, is not in l2rib/evpn, is not in HW Path-id 1 advertised to peers: 192.168.0.9 192.168.0.10 192.168.0.11 HWaddr 00:50:56:A0:76:30 inet addr:172.21.140.10 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14

VXLAN BGP EVPN Distributed Anycast Gateway All leaf nodes have same IP and MAC address for extended subnet No additional FHRP protocol Optimize East/West and North/South routing VLAN 140, Gateway IP: 172.21.140.1, MAC: 0000.2222.3333 VLAN 141, Gateway IP: 172.21.141.1, MAC: 0000.2222.3333 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15

VXLAN BGP EVPN Symmetric IRB VLAN/L2VNI only required on leaf nodes where end host resides New L3VNI for each VRF to handle VXLAN L3 routing Routed traffic is forwarded symmetrically using L3VNI VTEP1 VTEP2 SVI A SVI B SVI B SVI A VLAN A VLAN B VNI A VNI B VLAN A VLAN B H2 H1 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16

Intro to Ansible

Intro to Ansible Open Automation Platform Ansible is a easy to use, configuration management and IT automation tool Ansible is agentless; only requires SSH and Python on target nodes Ansible can also be extended to use Plug-ins and API 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 18

Intro to Ansible Terminology Host: remote machines that Ansible manages Group: several hosts that can be configured together and share common verables Inventory: file descripts hosts and groups in Ansible. Variable: names of value (int, str, dic, list) referenced in playbook or template YAML: data format for Playbook or Variables in Ansible Playbook: the script to orchestrate, automate, deploy system in Ansible. One playbook can include multiple plays. Roles: group of tasks, templates to implement specific behavior Jinja2: a Python based tempting language 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 19

Intro to Ansible Inventory file Inventory file includes all switches in this lab All switches can be organized in Spine and Leaf groups Inventory file can also include some variables [all:vars] defines global variables apply to all groups use [ ] define group host specific variable can also be defined in inventory file [all:vars] ansible_connection = local user=admin pwd=c1sco12345 gather_fact=no [spine] 198.18.134.140 router_id=192.168.0.6 loopback1=192.168.0.100 [leaf] 198.18.134.142 router_id=192.168.0.8 loopbacl1=192.168.0.18 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 20

Intro to Ansible Playbook Playbook starts with --- --- - hosts: leaf,jinja2_leaf vars: nxos_provider: username: "{{ user }}" password: "{{ pwd }}" transport: nxapi host: "{{ inventory_hostname }}" tasks: - name: configure VLAN for server port when: ("142" in inventory_hostname) or ("144" in inventory_hostname) nxos_switchport: interface: eth1/3 mode: access access_vlan: 140 provider: "{{ nxos_provider}}" Included hosts for this playbook Space and indent are very import in playbook Use {{var}} to reference variable in a play 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 21

Intro to Ansible Roles role helps organizing playbook role makes playbook more modular each function or application can be a role, in our lab, spine and leaf can be two different roles roles are inside roles folder role uses directory structure and expect certain directory names [root@rhel7-tools ]# tree. ansible.cfg hosts roles leaf handlers main.yml README.md tasks main.yml vars main.yml verify_underlay.yml 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 22

Lab Topology

Lab Topology Overview 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24

Lab Exercises

Lab Exercises Exercise 1: Build Ansible node on Redhat server Exercise 2: Siimple Ansible Playbook Exercise 3: Day 1 provisioning VXLAN Fabric using Ansible + Jinja2 template Exercise 4: Day 1 provisioning VXLAN Fabric using Ansible + NXOS modules Exercise 5: Day 2 operation using Ansible Appendix A: Day 0 automation using POAP 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 26

Lab Resource https://cisco.box.com/v/ltrdcn1572 Mtputty http://ttyplus.com/multi-tabbed-putty/ ATOM https://atom.io/ 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 27

Lab Tips

Be aware All pods have identical setup. You will have internet access from your pod, but you don t have access other pod. It is highly recommended to use ATOM as text editor to write your Ansible script. If you prefer to use VI or other text editor, pay attention to space and indent. This lab has minimal CLI involved. 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 29

Related Sessions BRKDCT-2949 Building DataCenter networks with VXLAN BGP-EVPN Part I BRKDCT-3378 Building DataCenter networks with VXLAN BGP-EVPN Part II LTRDCT-2781 Building and operating VXLAN BGP EVPN Fabrics with Data Center Network Manager LTRDCT-3161 Deploying VXLAN/EVPN in DC with SDN Controller(DCNM) 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 30

Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find this session in the Cisco Live Mobile App 2. Click Join the Discussion 3. Install Spark or go directly to the space 4. Enter messages/questions in the space cs.co/ciscolivebot# 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Please complete your Online Session Evaluations after each session Complete 4 Session Evaluations & the Overall Conference Evaluation (available from Thursday) to receive your Cisco Live T-shirt All surveys can be completed via the Cisco Live Mobile App or the Communication Stations Complete Your Online Session Evaluation Don t forget: Cisco Live sessions will be available for viewing on-demand after the event at www.ciscolive.com/global/on-demand-library/. 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public

Continue Your Education Demos in the Cisco campus Walk-in Self-Paced Labs Tech Circle Meet the Engineer 1:1 meetings Related sessions 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 33

Thank you