Table Of Contents
Command Reference
QoS Commands
qos switching
qos mapping precedence
show qos switching
show qos mapping
SDM Commands
sdm autolearn
sdm size
show sdm size
Command Reference
This appendix provides a command reference for those Cisco IOS commands—or aspects of the commands—that are unique to Layer 3 switching.
QoS Commands
qos switching
To enable quality of service (QoS) mapping on the device, use the qos switching command. To disable it, use the no form of this command.
qos switching
no qos switching
Syntax Description
This command has no keywords or arguments.
Defaults
QoS mapping is enabled.
Command Modes
Device configuration
Examples
The following example shows how to enable QoS mapping using the qos switching configuration command.
Related CommandsRelated Command
qos mapping precedence
qos mapping precedence
To configure QoS mapping at the system or interface level, use the qos mapping precedence command. To set the QoS precedence back to the default value, use the no form of this command.
qos mapping [destination dest-int] precedence value wrr-weight weight
no qos mapping precedence
Syntax Description
dest-int
|
Destination interface to which you want to define a traffic precedence; optional.
|
value
|
Precedence value derived from the higher two bits of the IP precedence field. Valid values are 0 to 3 inclusive.
|
weight
|
WRR-scheduling weight. Valid values are 1 to 4 inclusive. This specifies the weight assigned to traffic with the given precedence value.
|
Defaults
The default WRR-weights for precedence values 0, 1, 2, 3 are 1, 2, 3, and 4, respectively.
Command Modes
Device configuration
Examples
The following example shows how to set the system-level QoS mapping using the
qos mapping precedence configuration command.
Router(config)# qos mapping precedence 0 wrr-weight 4
Related CommandsRelated Command
qos switching
show qos switching
To show whether QoS mapping is enabled on the device, use the show qos switching command.
show qos switching
Syntax Description
This command has no keywords or arguments.
Command Modes
Privileged EXEC
Examples
The following example shows how to display whether QoS mapping is enabled using the show qos switching command.
Router# show qos switching
QoS Based IP Switching enabled
Related CommandsRelated Command
show qos mapping
show qos mapping
To show the QoS mapping in effect at the system or destination interface level, use the show qos mapping command.
show qos mapping [destination dest-int]
Syntax Description
dest-int
|
Destination interface to which you want to display QoS mapping; optional.
|
Command Modes
Privileged EXEC
Examples
The following example shows how to display the system-level QoS mapping using the show qos mapping command.
Related CommandsRelated Command
qos switching
SDM Commands
sdm autolearn
To enable the Switch Database Manager (SDM) autolearn feature, use the sdm autolearn command. To disable it, use the no form of this command. When the SDM autolearn feature is enabled, SDM automatically saves mask-length distribution for the routing database. SDM then uses this mask-length distribution as the initial mask-length distribution, which takes effect during the next system reboot.
sdm autolearn
no sdm autolearn
Syntax Description
This command has no keywords or arguments.
Defaults
SDM autolearn is enabled.
Related CommandsCommand Mode
Global configuration
sdm size
To configure the size of each protocol region in the SDM, use the sdm size command.
sdm size region-name{k-entries}num-of-entries
Syntax Description
region-name
|
Name of the protocol region for which you want to configure the size.
• ipx-bvi-network—ipx bvi region
• ip-adjacency—ip adjacency region
• ipx-node—ipx node region
• ip-prefix—ip prefix region
• ipx-network—ipx network region
• ip-mcast—ip multicast region
• l2-switching—L2 MAC address region
|
num-of-entries
|
Size can be entered either as multiples of 1K (that is 1024) entries or in absolute number of entries.
|
Command Modes
Global configuration
Usage Guidelines
The combined size entered for all the protocol regions should not exceed 32K, which is the total TCAM size. The supported size can be displayed using the show sdm size command. The size of SDM is represented as the number of base entries. Each protocol region entry can occupy one or more TCAM entries. The combined size of all the protocol regions should be calculated in terms of the base entries. Table A-1 lists the number of TCAM entries needed for each protocol region.
Table A-1 Number of TCAM Entries Needed for Each Protocol Region
Protocol Region
|
TCAM Entries
|
ipx-bvi-network
|
1
|
ip-adjacency
|
1
|
ipx-node
|
2
|
ip-prefix
|
1
|
ipx-network
|
1
|
ip-mcast
|
2
|
l2-forwarding
|
2
|
Since, the ip-prefix region occupies one TCAM entry, the sdm size ip-prefix k-entries 6 command configures 6K TCAM entries in the SDM for the ip-prefix region. Since each ipx-node entry occupies two TCAM entries, the sdm size ipx-node k-entries 3 command configures 6K TCAM entries in the SDM for the ipx-node region.
Related CommandsRelated Command
show sdm size
show sdm size
To display the size of TCAM and the size of each protocol region, use the show sdm size command. The size is shown as number of entries
show sdm size
Syntax Description
This command has no keywords or arguments.
Command Modes
Privileged EXEC
Examples
The following is sample output from the show sdm size command.
Switching Database Region Sizes :
IPX BVI Network : 32 32-bit entries
IP Adjacency : 2048 32-bit entries
IPX Node : 2048 64-bit entries
IP Prefix : 8192 32-bit entries
IPX Network : 6144 32-bit entries
IP Multicast : 3072 64-bit entries
MAC Addr : 1024 64-bit entries
Related CommandsRelated Command
sdm size