Introductory - How To Perform Common Tasks in ACI PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 119

Performing Common Tasks in ACI

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

channel-group 400 mode active

feature lldp router ospf 30


BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
“ There’s a way to do it better– find it.

-- Thomas Edison

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

Physical Switch Bridge


Domain Profile Domain VLAN Pool

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

ACI Technology Recap APIC GUI Familiarity Common Tasks

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

Filter Service Filter

Web App DB

External
Network

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Web Tier App Tier DB Tier

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Web Tier App Tier DB Tier

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

First, we need a way to identify and group together end points.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
EPG “Web” EPG “App” EPG “DB”

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

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.

EPG “Web” EPG “App” EPG “DB”

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

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.

EPG “Web” EPG “App” EPG “DB”

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

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.

EPG “Web” EPG “App” EPG “DB”

EP1 EP2 EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4 EP3 EP4

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant

A Tenant is a container for all


network, security,
troubleshooting and L4 – 7
service policies.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant

Tenant resources are isolated


from each other, allowing
management by different
administrators.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant

Private Network 1 Private Network 1


Private networks (also called
contexts) are defined within a
tenant to allow isolated and
potentially overlapping IP
Private Network 2 Private Network 2
address space.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Pepsi-Tenant Coke-Tenant

Private Network 1 Private Network 1 Within a private network, one


or more bridge domains must
Bridge Domain 1 Bridge Domain 1
be defined.
Bridge Domain 2 Bridge Domain 2

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)…

…and APIC cluster health.

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.

The APIC has an “API


Inspector” – this allows you to
view the internal API calls
happening within the APIC.

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

How do I do this in ACI?

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.

A VLAN pool is simply a range of


VLAN VLANs that could be applied to a
Pool
switch or interface.

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

Create the pool using the


range you need.

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

A domain defines the ‘scope’ of


your VLANs – i.e. physical,
virtual, external, etc.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Next, configure a Physical Domain.

Your domain should reference the


VLAN Physical
Pool Domain VLAN pool configured earlier.

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

Think of an interface policy group like a


port-profile in NX-OS. It’s used to control
various interface parameters.

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

What have we actually achieved here?

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public
Spine-103 Spine-104

At this point, we have


Leaf-101
E1/1
Leaf-102 provisioned a VLAN pool
on node 101.
VLAN 600

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

How do I attach a FEX to


Leaf-101 Leaf-102
an ACI fabric?

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

1) The APIC must communicate with vCenter


and an ‘APIC controlled’ DVS created.

BRKACI-1789 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Leaf

CDP / LLDP
ESXi Host

2) The leaf node must ‘discover’ the host


using CDP or LLDP.

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

Now add the


VMM domain to
your EPG…

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?

EPG “Web” EPG “App”

EP1 EP2 EP1 EP2

EP3 EP4 EP3 EP4

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

Physical Switch Bridge


Domain Profile Domain VLAN Pool

Understand the basicsL2 of the ACI policy model.


Outside
Private
Network Contract
EPG Attachable
Entity
L3 Profile
Outside
Interface Filter
Selector
Subnet VMM
Domain

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.

• All surveys can be completed via


the Cisco Live Mobile App or the
Communication Stations

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

You might also like