Purpose
Command or Action
switch(config)# hardware profile tcam resource
template SR_MPLS_CARVE ref-template nfe2
switch(config-tcam-temp)#
nfe2
—The default TCAM template for NFE2-enabled Cisco
Nexus 9500 Series, 3232C, and 3264Q devices.
l2-l3
—The default TCAM template for Layer 2 and Layer
3 configurations on Cisco Nexus 9200 Series switches.
l3
—The default TCAM template for Layer 3 configurations
on Cisco Nexus 9200 Series switches. The Layer 3 TCAM
template is the default template for the Cisco Nexus 9200
Series switches.
Adds any desired TCAM regions and their sizes to the
template. Enter this command for each region you want to
(Optional)
region tcam-size
Example:
Step 3
add to the template. For the list of available regions, see
"Configuring ACL TCAM Region Sizes"
switch(config-tcam-temp)# mpls 256
Exits the TCAM template configuration mode.
Required:
exit
Example:
Step 4
switch(config-tcam-temp)# exit
switch(config#)
Applies the custom template to all line cards and fabric
modules.
Required: [
no
]
hardware profile tcam resource
service-template template-name
Example:
Step 5
switch(config)# hardware profile tcam resource
service-template SR_MPLS_CARVE
Displays the configuration for all TCAM templates or for
a specific template.
(Optional)
show hardware access-list tcam template
{
all
|
nfe
|
nfe2
|
l2-l3
|
l3
|
template-name
}
Example:
Step 6
switch(config)# show hardware access-list tcam
template SR_MPLS_CARVE
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 7
switch(config)# copy running-config startup-config
Reloads the device.
reload
Step 8
Example:
The configuration is effective only after you
enter
copy running-config startup-config
+
reload
.
Note
switch(config)# reload
Configuring TCAM Carving
The default TCAM region configuration varies by platform and does not accommodate all TCAM regions.
To enable any desired regions, you must decrease the TCAM size of one region and then increase the TCAM
size for the desired region.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
250
Configuring IP ACLs
Configuring TCAM Carving