Introductory - How To Perform Common Tasks in ACI PDF
Introductory - How To Perform Common Tasks in ACI PDF
Introductory - How To Perform Common Tasks in ACI PDF
BRKACI-1789
Adam Raffe
Solution Architect, Cisco Services
@adamraffe
conf t
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
no shutdown vpc domain 5
ip address 10.1.1.1/24
conf t
interface e1/10 vrf context prod
5
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
In ACI, we do things differently...
Tenant
App Interface Filter
Profile Profile
L2
Private Outside
Network Contract
EPG Attachable
Entity
L3 Profile
Outside
Interface Filter
Selector
Subnet VMM
Domain
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Agenda
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
A Quick Recap on ACI
Nexus 9000 + APIC = ACI
APIC
APIC
APIC
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
ACI uses a policy based approach
that focuses on the application.
QoS QoS QoS
Web App DB
External
Network
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Web Tier App Tier DB Tier
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Web Tier App Tier DB Tier
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
EPG “Web” EPG “App” EPG “DB”
In the ACI model, we do this using the End Point Group (EPG).
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Once we have our EPGs defined, we need to create policies to
determine how they communicate with each other.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
A contract typically refers to one or more ‘filters’ to define
specific protocols & ports allowed between EPGs.
Filters
TCP: 80
TCP: 443
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
A collection of EPGs and the policies that define how they
communicate form an Application Profile.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant
A bridge domain is a L2
Private Network 2 Private Network 2 forwarding construct within the
Bridge Domain 3 Bridge Domain 3
fabric, used to constrain
broadcast and multicast traffic.
Bridge Domain 4 Bridge Domain 4
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Getting Familiar With The APIC GUI
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
After logging in to the APIC, you’ll
see the initial ‘Dashboard’ screen.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The APIC dashboard provides you with an ‘at-a-glance’ view of the system
health and fault counts.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
‘System Health’ shows you a view of the
overall health of the ACI system (all nodes, tenants, etc).
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The lower half of the screen shows node and tenant health.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Move these sliders down
to show only nodes /
tenants with lower health.
The lower half of the screen shows node and tenant health.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
On the right, you’ll see the fault
counts by domain
(e.g. access, tenant, security)…
…type
(config, environmental, etc)…
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
At the top of the screen, the menu bar is used to
switch between the main configuration tabs.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Some tabs contain ‘sub-menus’ with further
configuration items.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Most screens within the APIC are built upon a
“navigation” pane and a “work” pane.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The navigation pane is on the left
hand side and allows navigation to all
configuration elements on a tab.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The work pane
displays
information
about the
component
selected in the
navigation pane.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
What is under the ‘Tenants’ tab?
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Profiles /
EPGs
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Tenant Networking
(BDs, private networks,
external networking)
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Security policies
(contracts & filters)
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
- Fabric topology info
- Physical node info (modules,
interfaces, IP addressing)
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Policies relating to the fabric itself –
IS-IS, BGP, COOP, etc
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Connectivity into the fabric – e.g.
interfaces, VLANs, CDP, LLDP, etc
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Integration with server virtualisation systems
(vSphere, Hyper-V, etc)
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
L4-7 Device Package AAA, Firmware
Management Management,SNMP,
Syslog, etc
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Choose Show API Inspector
from the “Welcome” menu.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
It’s also possible to ‘save’
the XML of certain
objects (e.g. right click on
a tenant object and
select Save as…
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Common
Tasks
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Tenant ‘CiscoLive’
Network: CiscoLiveNet
Before we start, define
Bridge Domain: CiscoLiveBD your tenant, network and
bridge domain.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104
Leaf-101 Leaf-102
E1/1
VLAN 600
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
The NX-OS way…
interface Ethernet1/1
switchport mode access
switchport access vlan 10
no shutdown
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
First, we need to define a VLAN pool.
VLAN
Pool
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
First, we need to define a VLAN pool.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
First, we need to define a VLAN pool.
VLAN
Pool
‘static’
‘dynamic’
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Start by clicking on
Fabric | Access Policies
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Next, configure a Physical Domain.
VLAN Physical
Pool Domain
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Next, configure a Physical Domain.
VLAN Physical
Pool Domain
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Next, configure a Physical Domain.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
What next?
Introducing the Attachable Access Entity Profile!
VLAN Physical
AAEP
Pool Domain
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
What next?
Introducing the Attachable Access Entity Profile!
The AAEP groups together
VLAN Physical
Pool Domain
AAEP domains – e.g. physical,
virtual, external.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now we need to start defining interface properties.
We do this using the Interface Policy Group.
Interface
VLAN Physical
AAEP Policy
Pool Domain
Group
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now we need to start defining interface properties.
We do this using the Interface Policy Group.
Interface
VLAN Physical
AAEP Policy
Pool Domain
Group
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now we need to start defining interface properties.
We do this using the Interface Policy Group.
Interface
VLAN Physical
AAEP Policy
Pool Domain
Group
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now we need to start defining interface properties.
We do this using the Interface Policy Group.
Interface
VLAN Physical
AAEP Policy
Pool Domain
Group
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The last steps are to apply these policies
to interfaces and switching nodes.
Interface
VLAN Physical
AAEP Policy
Pool Domain
Group
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
First, use an Interface Profile to select
the interfaces to apply to.
Interface Interface
VLAN Physical
AAEP Policy Profile /
Pool Domain
Group Selector
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
First, use an Interface Profile to select
the interfaces to apply to.
Interface Interface
VLAN Physical
AAEP Policy Profile /
Pool Domain
Group Selector
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Finally, the Switch Profile specifies which
switching nodes to apply policy to.
Interface Interface
VLAN Physical Switch
AAEP Policy Profile /
Pool Domain Profile
Group Selector
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Finally, the Switch Profile specifies which
switching nodes to apply policy to.
Interface Interface
VLAN Physical Switch
AAEP Policy Profile /
Pool Domain Profile
Group Selector
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Finally, the Switch Profile specifies which
switching nodes to apply policy to.
Interface Interface
VLAN Physical Switch
AAEP Policy Profile /
Pool Domain Profile
Group Selector
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
You can use the Quick Start wizard to
simplify this process.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Interface Interface
VLAN Physical Switch
AAEP Policy Profile /
Pool Domain Profile
Group Selector
LLDP
CDP
LACP
Storm
Control
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
We now switch to our tenant.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Create an
Application Profile.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Create an EPG.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
The VLAN must be within the range
specified in your static pool earlier.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104
Leaf-101 Leaf-102
How do I create a vPC
vPC
pair in ACI?
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
The NX-OS way…
vpc domain 10
role priority 1
system-priority 1
peer-keepalive destination 10.1.1.1
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104
Leaf-101 Leaf-102
No peer link in ACI vPC!
vPC
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Verify vPC…
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now let’s create a vPC to the host…
Leaf-101 Leaf-102
vPC
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now let’s create a vPC to the host…
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104
FEX-101
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Verify FEX Connectivity
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Verify FEX Connectivity
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
APIC
Spine-103 Spine-104
Configuring
Leaf-101 Leaf-102
Hypervisor Integration
ESXi Host
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Hoes does this work?
APIC
Create
Application
Profile
Web
App
DB
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Hoes does this work?
APIC
Create
Application Port Groups
Profile
Web Web
App App
DB DB
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
For this to work, two things must happen…
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
APIC vCenter
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Leaf
CDP / LLDP
ESXi Host
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
First, create a dynamic VLAN pool.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Create the vCenter domain:
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Verify VM Integration…
CL-VMM
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Create AAEPs, Interface Policies, etc
for your hosts.
Spine-103 Spine-104
Interface Interface
AAEP Policy Profile /
Leaf-101 Leaf-102
Group Selector
ESXi Host
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Our AAEP references a virtual domain.
AAEP
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Make sure the host
can see the leaf node
via CDP / LLDP.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
CL-VMM
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
A new port group has been created.
VLAN 209 has been allocated from our ‘dynamic’ pool.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
How do I configure communication
between two EPGs?
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
We’ll start with two EPGs.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Create a filter and filter entry for the
protocol you want to allow.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Create a contract and reference the
filter you just created.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Now, provide the contract from one EPG
and consume from the other.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The final result
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
ACI Toolkit
108
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
The ACI toolkit is a Cisco Python project to simplify the ACI object model.
https://github.com/datacenter/acitoolkit
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
It also provides an application that provides NX-OS style CLI for certain tasks.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Cisco ACI Toolkit Command Shell
Copyright (c) 2014, Cisco Systems, Inc. All rights reserved.
fabric# switchto CL-Tenant
fabric-CL-Tenant# conf t
fabric-CL-Tenant(config)# bridgedomain CL-BD
Executing create bridgedomain command
fabric-CL-Tenant(config-bd)# ip address 50.50.50.50/24
Executing create subnet command
fabric-CL-Tenant(config-bd)# exit
fabric-CL-Tenant(config)# app CL-App
Executing create app command
fabric-CL-Tenant(config-app)# epg CL-EPG
Executing create epg command
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
In Summary…
Tenant
App Interface Filter
Profile Profile
114
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Use the API inspector and “Save As..” features
to help understand the API.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Complete Your Online Session Evaluation
• 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.
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Call to Action
• Visit the World of Solutions for
– Walk in Labs
– Technical Solution Clinics
• Meet the Engineer
• Lunch time Table Topics
• DevNet zone related labs and sessions
• Recommended Reading: for reading material and further resources for this
session, please visit www.pearson-books.com/CLMilan2015
• My blog: www.adamraffe.com
BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 117