Table Of Contents
Understanding the SDM Templates
Configuring the Switch SDM Template
SDM Template Configuration Guidelines
Configuring SDM Templates
This chapter describes how to configure the Switch Database Management (SDM) templates on the Catalyst 3750 Metro switch.
Note For complete syntax and usage information for the commands used in this chapter, see the command reference for this release.
This chapter consists of these sections:
•Understanding the SDM Templates
•Configuring the Switch SDM Template
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. You can select a template to provide maximum system usage for some functions or to use the default template to balance resources.
The templates prioritize system resources to optimize support for these types of features:
•Routing—The routing template maximizes system resources for unicast routing, typically required for a router or aggregator in the center of a network.
•VLANs—The VLAN template disables routing and supports the maximum number of unicast MAC addresses. It would typically be selected for a Layer 2 switch.
•Default—The default template gives balance to all functions.
Note Though visible in the command-line help string, the dual-ipv4-and-ipv6 template is not supported.
Table 7-1 lists the approximate numbers of each resource supported in each of the three supported templates.
.
The first eight rows in the tables (unicast MAC addresses through security ACEs) represent approximate hardware boundaries set when a template is selected. If a section of a hardware resource is full, all processing overflow is sent to the CPU, seriously impacting switch performance. The last row is a guideline used to calculate hardware resource consumption related to the number of Layer 2 VLANs on the switch.
Configuring the Switch SDM Template
This section describes how to configure the SDM template to be used on the switch. This section contains this configuration information:
•SDM Template Configuration Guidelines
Default SDM Template
The default template for is the "default desktop" template.
SDM Template Configuration Guidelines
You must reload the switch for the configuration to take effect.
Use the sdm prefer vlan global configuration command only on switches intended for Layer 2 switching with no routing. When you use the VLAN template, no system resources are reserved for routing entries, and any routing is done through software. This overloads the CPU and severely degrades routing performance.
Do not use the routing template if you do not have routing enabled on your switch. The sdm prefer routing global configuration command prevents other features from using the memory allocated to unicast routing in the routing template.
Setting the SDM Template
Beginning in privileged EXEC mode, follow these steps to use the SDM template to maximize resources:
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:
Switch# show sdm preferThe current template is "desktop routing" template.The selected template optimizes the resources inthe switch to support this level of features for8 routed interfaces and 1024 VLANs.number of unicast mac addresses: 3Knumber of igmp groups + multicast routes: 1Knumber of unicast routes: 11Knumber of directly connected hosts: 3Knumber of indirect routes: 8Knumber of qos aces: 512number of security aces: 1KOn next reload, template will be "desktop vlan" template.To return to the default template, use the no sdm prefer global configuration command.
This example shows how to configure a switch with the routing template.
Switch(config)# sdm prefer routingSwitch(config)# endSwitch# reloadProceed with reload? [confirm]Displaying the SDM Templates
Use the show sdm prefer privileged EXEC command with no parameters to display the active template.
Use the show sdm prefer [default | routing |vlan] privileged EXEC command to display the resource numbers supported by the specified template.
This is an example of output from the show sdm prefer command, displaying the template in use.
Switch# show sdm preferThe current template is "desktop default" template.The selected template optimizes the resources inthe switch to support this level of features for8 routed interfaces and 1024 VLANs.number of unicast mac addresses: 6Knumber of igmp groups + multicast routes: 1Knumber of unicast routes: 8Knumber of directly connected hosts: 6Knumber of indirect routes: 2Knumber of policy based routing aces: 0number of qos aces: 512number of security aces: 1KThis is an example of output from the show sdm prefer routing command:
Switch# show sdm prefer routing"desktop routing" template:The selected template optimizes the resources inthe switch to support this level of features for8 routed interfaces and 1024 VLANs.number of unicast mac addresses: 3Knumber of igmp groups + multicast routes: 1Knumber of unicast routes: 11Knumber of directly connected hosts: 3Knumber of indirect routes: 8Knumber of policy based routing aces: 512number of qos aces: 512number of security aces: 1K