Configuring SDM Templates
Understanding the SDM Templates
You can use SDM templates to configure system resources in the switch to optimize support for specific features, depending on how the switch is used in the network.
This switch offers two default templates to support the maximum number of unicast MAC addresses for IPv4 only and dual stack IPv4 and IPv6 switch environments:
•Default—The template disables routing and supports the maximum number of unicast MAC addresses for IPv4 traffic.
•Dual IPv4 and IPv6 Default—The dual IPv4 and IPv6 template allows the switch to be used in dual stack environments (supporting both IPv4 and IPv6). Routing is disabled. You should not use this template if you plan to forward only IPv4 traffic.
Table 8-1 Approximate Number of Feature Resources Allowed by IPv4 Templates
|
|
Unicast MAC addresses |
12 K |
Internet Group Management Protocol (IGMP) groups and multicast routes |
1 K |
IPv4 unicast routes |
0 |
Policy-based routing access control entries (ACEs) |
0 |
IPv4 or MAC QoS ACEs |
0.75 K |
IPv4 or MAC security ACEs |
1 K |
The dual IPv4 and IPv6 template supports basic Layer 2, multicast, QoS, and ACLs for IPv4, and basic Layer 2 and ACLs for IPv6.
Table 8-2 Approximate Feature Resources Allowed by a Dual IPv4-IPv6 Template
|
|
Unicast MAC addresses |
8 K |
IPv4 IGMP groups and multicast routes |
1 K |
IPv4 unicast routes: |
0 |
IPv6 multicast groups |
1.125 K |
Directly connected IPv6 addresses |
0 |
Indirect IPv6 unicast routes |
0 |
IPv4 policy-based routing ACEs |
0 |
IPv4 or MAC QoS ACEs |
0.75 K |
IPv4 or MAC security ACEs |
1 K |
IPv6 Policy-based routing access control entries (ACEs) |
0 |
IPv6 or MAC QoS ACEs |
0.625 K |
IPv6 security ACEs |
0.5 K |
Configuring the Switch SDM Template
These sections contain this configuration information:
•SDM Template Configuration Guidelines
•Setting the SDM Template
SDM Template Configuration Guidelines
Follow these guidelines when selecting and configuring SDM templates:
•When you select and configure SDM templates, you must reload the switch for the configuration to take effect.
•If you try to configure IPv6 features without first selecting a dual IPv4 and IPv6 template, a warning message is generated.
•Using the dual stack templates results in less TCAM capacity allowed for each resource, so do not use if you plan to forward only IPv4 traffic.
Setting the SDM Template
Beginning in privileged EXEC mode, follow these steps to use the SDM template to maximize feature usage:
|
|
|
Step 1 |
configure terminal |
Enter global configuration mode. |
Step 2 |
sdm prefer {default | dual-ipv4-and-ipv6 default} |
Specify the SDM template to be used on the switch: The keywords have these meanings: •default—Gives balance to all functions. •dual-ipv4-and-ipv6 default—Balance IPv4 and IPv6 Layer 2 and Layer 3 functionality. Use the no sdm prefer command to set the switch to the default template. |
Step 3 |
end |
Return to privileged EXEC mode. |
Step 4 |
reload |
Reload the operating system. |
After the system reboots, you can use the show sdm prefer privileged EXEC command to verify the new template configuration. If you enter the show sdm prefer command before you enter the reload privileged EXEC command, the show sdm prefer command shows the template currently in use and the template that will become active after a reload.
This is an example of an output display when you have changed the template and have not reloaded the switch:
The current template is "default" template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 12K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 0
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.75K
number of IPv4/MAC security aces: 1K
On next reload, template will be "dual-ipv4-and-ipv6 default" template.
To return to the default template, use the no sdm prefer global configuration command.
This example shows how to configure the IPv4-and-IPv6 default template on a desktop switch:
Switch(config)# sdm prefer dual-ipv4-and-ipv6 default
Proceed with reload? [confirm]
Displaying the SDM Templates
Use the show sdm prefer privileged EXEC command with no parameters to display the active template.
This is an example of output from the show sdm prefer command, displaying the template in use.
The selected template optimizes the resources in the switch to support this level of
features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 12K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 0
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.75K
number of IPv4/MAC security aces: 1K
This is an example of output from the show sdm prefer dual-ipv4-and-ipv6 default command:
Switch# show sdm prefer dual-ipv4-and-ipv6 default
"dual-ipv4-and-ipv6 default" template:
The selected template optimizes the resources in the switch to support this level of
features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 8K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 0
number of IPv6 multicast groups: 1.125k
number of directly-connected IPv6 addresses: 0
number of indirect IPv6 unicast routes: 0
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.75K
number of IPv4/MAC security aces: 1K
number of IPv6 policy based routing aces: 0
number of IPv6 qos aces: 0.625k
number of IPv6 security aces: 0.5K