The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
When configuring the password, you must precede special characters such as '$' or '!' with a backslash ('\$') to avoid misinterpretation
by the Bash shell. The escape backslash is necessary only when configuring the password; the backslash does not appear in
the actual password.
When configuring the password, you must precede special characters such as '$' or '!' with a backslash ('\$') to avoid misinterpretation
by the Bash shell. The escape backslash is necessary only when configuring the password; the backslash does not appear in
the actual password.
You can attach an EPG to the read-only VMM domain and configure policies for it. However, those policies are not pushed to
the VDS in the VMware vCenter.
Promoting a Read-Only VMM Domain Using the NX-OS Style CLI
You can use the NX-OS style CLI to promote a read-only VMM domain.
Before you begin
Instructions for promoting a read-only VMM domain to a managed domain assume you have completed the following prerequisites:
In the VMware vCenter, under the Networking tab, ensure that the VDS is contained by a network folder of the exact same name of the read-only VMM domain that you plan
to promote.
Procedure
Step 1
In the CLI, enter configuration mode.
Example:
apic1# configure
apic1(config)#
Step 2
Change the VMM domain's access mode to managed.
In the following example, replace vmmDom1 with the VMM domain you have previously configured as read-only.
Any EPGs you attach to the VMM domain and any policies you configure will now be pushed to the VDS in the VMware vCenter.
Enhanced LACP Policy Support
Create LAGs for DVS Uplink Port Groups Using the NX-OS Style CLI
Improve distributed virtual switch (DVS) uplink port group load balancing by putting the port groups into link aggregation
groups (LAGs) and associating them with specific load-balancing algorithms. You can perform this task using the NX-OS style
CLI.
Before you begin
You must have created a VMware vCenter virtual machine manager (VMM) domain for VMware VDS.
Procedure
Create or delete an enhanced LACP policy.
Example:
apic1(config-vmware)# enhancedlacp LAG name
apic1(config-vmware-enhancedlacp)# lbmode loadbalancing mode
apic1(config-vmware-enhancedlacp)# mode mode
apic1(config-vmware-enhancedlacp)# numlinks max number of uplinks
apic1(config-vmware)# no enhancedlacp LAG name to delete
What to do next
If you are using VMware VDS, associate endpoint groups (EPGs) to the domain with the enhanced LACP policy.
Associate Application EPGs to VMware vCenter Domains with Enhanced LACP Policies Using the NX-OS Style CLI
Associate application endpoint groups (EPGs) with the VMware vCenter domain with LAGs and a load-balancing algorithm. You
can perform this task using NX-OS style CLI. You can also deassociate application EPGs from the domain.
Before you begin
You must have created link aggregation groups (LAGs) for distributed virtual switch (DVS) uplink port groups and associated
a load-balancing algorithm to the LAGs.
Procedure
Step 1
Associate an application EPG with the domain or deassociate it from the domain.
Example:
apic1(config-tenant-app-epg-domain)# lag-policy name of the LAG policy to associate
apic1(config-tenant-app-epg-domain)# no lag-policy name of the LAG policy to deassociate
Step 2
Repeat Step 1 for other application EPGs in the tenant as desired.
Endpoint Retention Configuration
Configure Endpoint Retention Using the NX-OS Style CLI
Before you begin
You must have created a vCenter domain.
Procedure
Step 1
In the CLI, enter configuration mode:
Example:
apic1# configure
apic1(config)#
Step 2
Configure a retention time for detached endpoints:
You can choose a delay of between 0 and 600 seconds. The default is 0.
apic1(config-vmware)# show vmware domain name mininet
Domain Name : mininet
Virtual Switch Mode : VMware Distributed Switch
Switching Encap Mode : vlan
Vlan Domain : mininet (2800-2850, 2860-2900)
Physical Interfaces :
Number of EPGs : 2
Faults by Severity : 0, 2, 4, 0
LLDP override : no
CDP override : no
Channel Mode override : no
vCenters:
Faults: Grouped by severity (Critical, Major, Minor, Warning)
vCenter Type Datacenter Status ESXs VMs Faults
-------------------- -------- -------------------- -------- ----- ----- ---------------
172.22.136.195 vCenter mininet online 2 57 0,0,4,0
Trunk Portgroups:
Name VLANs
--------------------------------------------- ----------------------------------------------
epgtr1 280-285
epgtr2 280-285
epgtr3 2800-2850
apic1(config-vmware)# show vmware domain name mininet trunk-portgroup
Name Aggregated EPG
------------------------------ ----------------------------------------------
epgtr1 test|wwwtestcom3|test830
epgtr2
epgtr3 test|wwwtestcom3|test830
test|wwwtestcom3|test833
apic1(config-vmware)# )# show vmware domain name ifav2-vcenter1 trunk-portgroup nametrunkpg1
Name Aggregated EPG Encap
------------------------------ ------------------------------ ------------
trunkpg1 LoadBalance|ap1|epg1 vlan-318
LoadBalance|ap1|epg2 vlan-317
LoadBalance|ap1|failover-epg vlan-362
SH:l3I:common:ASAv-HA:test- vlan-711
rhi|rhiExt|rhiExtInstP
SH:l3I:common:ASAv-HA:test- vlan-712
rhi|rhiInt|rhiIntInstP
test-dyn-ep|ASA_FWctxctx1bd- vlan-366
inside|int
test-dyn-ep|ASA_FWctxctx1bd- vlan-888
inside1|int
test-dyn-ep|ASA_FWctxctx1bd- vlan-365
outside|ext
test-dyn-ep|ASA_FWctxctx1bd- vlan-887
outside1|ext
test-inb|FW-Inbctxtrans- vlan-886
vrfinside-bd|int
test-inb|FW-Inbctxtrans- vlan-882
vrfoutside-bd|ext
test-inb|inb-ap|inb-epg vlan-883
test-pbr|pbr-ap|pbr-cons-epg vlan-451
test-pbr|pbr-ap|pbr-prov-epg vlan-452
test1|ap1|epg1 vlan-453
test1|ap1|epg2 vlan-485
test1|ap1|epg3 vlan-454
test2-scale|ASA- vlan-496
Trunkctxctx1bd-inside1|int
test2-scale|ASA- vlan-811
Trunkctxctx1bd-inside10|int
apic1(config-vmware)# show running-config vmware-domain mininet
# Command: show running-config vmware-domain mininet
# Time: Wed May 25 21:09:13 2016
vmware-domain mininet
vlan-domain member mininet type vmware
vcenter 172.22.136.195 datacenter mininet
exit
configure-dvs
exit
trunk-portgroup epgtr1 vlan 280-285
trunk-portgroup epgtr2 vlan 280-285
trunk-portgroup epgtr3 vlan 2800-2850
exit
Custom EPG Names and Cisco ACI
Configure or Change a Custom EPG Name Using the NX-OS Style CLI
You can use the NX-OS Style CLI to configure or change a custom endpoint group (EPG) name. Execute the following command in
configuration mode for the application EPG domain.
Note
You can use the NX-OS Style CLI to configure or change a custom EPG name only for VMware vCenter-based domains. If you use
Microsoft System Center Virtual Machine Manager, you can use the Cisco Application Policy Infrastructure
Controller (APIC) GUI or the REST API to configure or change a custom EPG name.
Note
Make sure to attach the EPG to the Virtual Machine Manager (VMM) using a single CLI under the following circumstances:
You attach the EPG and specify a custom EPG name.
You intend that the attachment takes over an existing EPG in VMware vCenter with the same name as the custom EPG name.
If you fail to attach the EPG and specify a custom EPG name in a single CLI line, you may create duplicate EPGs.
Delete a Custom EPG Name Using the NX-OS Style CLI
You can delete a custom endpoint group (EPG) name using the NX-OS Style CLI. Doing so renames the port group in the Virtual
Machine Manager domain to the default format: tenant|application|epg.
Note
You can use the NX-OS Style CLI to delete a custom EPG name only for VMware vCenter-based domains. If you use Microsoft System
Center Virtual Machine Manager, you can use the Cisco Application Policy Infrastructure
Controller (APIC) GUI or the REST API to delete a custom EPG name.
Procedure
Remove the custom EPG name, applying the default name format to the port group in the VMM domain.
Example:
apic1(config-tenant-app-epg-domain)# no custom-epg-name
apic1(config-tenant-app-epg-domain)# show running-config
# Command: show running-config tenant Tenant1 application App1 epg Epg1 vmware-domain member dvs1
# Time: Tue Nov 12 07:51:38 2019
tenant Tenant1
application App1
epg Epg1
vmware-domain member dvs1
exit
exit
exit
exit
Configuring Microsegmentation with Cisco ACI Using the NX-OS-Style CLI
This section describes how to configure Microsegmentation with Cisco ACI for VMware VDS or Microsoft Hyper-V Virtual Switch
using VM-based attributes within an application EPG.
Procedure
Step 1
In the CLI,
enter configuration mode:
Example:
apic1# configure
apic1(config)#
Step 2
Create the uSeg EPG:
Example:
This example is for an application EPG.
Note
The command to allow microsegmentation in the following example is required for VMware VDS only.
apic1(config)# tenant cli-ten1
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-baseEPG1
apic1(config-tenant-app-epg)# bridge-domain member cli-bd1
apic1(config-tenant-app-epg)# vmware-domain member cli-vmm1 allow-micro-segmentation
Example:
(Optional) This example sets match EPG precedence for the uSeg EPG:
apic1(config)# tenant Coke
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-uepg1 type micro-segmented
apic1(config-tenant-app-uepg)# bridge-domain member cli-bd1
apic1(config-tenant-app-uepg)# match-precedence 10
Example:
This example uses a filter based on the attribute VM Name.
apic1(config)# tenant cli-ten1
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-uepg1 type micro-segmented
apic1(config-tenant-app-uepg)# bridge-domain member cli-bd1
apic1(config-tenant-app-uepg)# attribute-logical-expression ‘vm-name contains <cos1>’
Example:
This example uses a filter based on an IP address.
apic1(config)# tenant cli-ten1
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-uepg1 type micro-segmented
apic1(config-tenant-app-uepg)# bridge-domain member cli-bd1
apic1(config-tenant-app-uepg)# attribute-logical-expression ‘ip equals <FF:FF:FF:FF:FF:FF>’
Example:
This example uses a filter based on a MAC address.
apic1(config)# tenant cli-ten1
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-uepg1 type micro-segmented
apic1(config-tenant-app-uepg)# bridge-domain member cli-bd1
apic1(config-tenant-app-uepg)# attribute-logical-expression ‘mac equals <FF-FF-FF-FF-FF-FF>’
Example:
This example uses the operator AND to match all attributes and the operator OR to match any attribute.
apic1(config)# tenant cli-ten1
apic1(config-tenant)# application cli-a1
apic1(config-tenant-app)# epg cli-uepg1 type micro-segmented
apic1(config-tenant-app-uepg)# attribute-logical-expression 'hv equals host-123 OR (guest-os equals "Ubuntu Linux (64-bit)" AND domain contains fex)'
Example:
This example uses a filter based on the attribute VM-Custom Attribute.
Create the integration group, the integration for the integration group, and choose the Leaf Enforced or the Preprovision
policy.
If you choose the default Pre-provision policy, Cisco Application Policy Infrastructure
Controller (APIC) detects which virtual machine manager (VMM) domain that you use. Cisco APIC then pushes all VLANs associated with that domain to the target Cisco UCSM.
If you choose the Leaf Enforced policy, Cisco APIC detects only the VLANS that are deployed to the top-of-rack leaf nodes. Cisco APIC then filters out any undeployed VLANs, resulting in fewer VLANs pushed to the Cisco UCSM.
Note
The following example includes an example of specifying the uplink port channel, which your deployment might require. For
example, Layer 2 disjoint networks require that you make that specification.
Creating a Static IP
Address Pool Using the NX-OS Style CLI
Procedure
Step 1
In the CLI, enter configuration mode:
Example:
apic1# config
Step 2
Create the Static IP Address Pool:
Example:
apic1(config)# tenant t0
apic1(config-tenant)# application a0
apic1(config-tenant-app)# epg e0
apic1(config-tenant-app-epg)# mic
microsoft microsoft-domain
apic1(config-tenant-app-epg)# microsoft static-ip-pool test_pool gateway 1.2.3.4/5
apic1(config-tenant-app-epg-ms-ip-pool)# iprange 1.2.3.4 2.3.4.5
apic1(config-tenant-app-epg-ms-ip-pool)# dns
dnssearchsuffix dnsservers dnssuffix
apic1(config-tenant-app-epg-ms-ip-pool)# dnssuffix testsuffix
apic1(config-tenant-app-epg-ms-ip-pool)# exit
apic1(config-tenant-app-epg)# no mi
microsoft microsoft-domain
apic1(config-tenant-app-epg)# no microsoft static-ip-pool ?
test_pool
apic1(config-tenant-app-epg)# no microsoft static-ip-pool test_pool gateway ?
gwAddress gwAddress
apic1(config-tenant-app-epg)# no microsoft static-ip-pool test_pool gateway 1.2.3.4/5
apic1(config-tenant-app-epg)#
Step 3
Verify the Static IP Address Pool:
Example:
apic1(config-tenant-app-epg-ms-ip-pool)# show running-config
# Command: show running-config tenant t0 application a0 epg e0 microsoft static-ip-pool test_pool gateway 1.2.3.4/5
# Time: Thu Feb 11 23:08:04 2016
tenant t0
application a0
epg e0
microsoft static-ip-pool test_pool gateway 1.2.3.4/5
iprange 1.2.3.4 2.3.4.5
dnsservers
dnssuffix testsuffix
dnssearchsuffix
winservers
exit
exit
exit
Creating a SCVMM
Domain Profile Using the NX-OS Style CLI
This section
describes how to create a SCVMM domain profile using the command-line interface
(CLI).
Procedure
Step 1
In the NX-OS
Style CLI, configure a vlan-domain and add the VLAN ranges: