|
|
This appendix provides a command reference for those Cisco IOS commands---or aspects of the commands---that are unique to Layer 3 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 switchingThis command has no keywords or arguments.
QoS mapping is enabled.
Device configuration
The following example shows how to enable QoS mapping using the qos switching configuration command.
2948G-L3# qos switching
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
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. |
The default WRR-weights for precedence values 0, 1, 2, 3 are 1, 2, 3, and 4, respectively.
Device configuration
The following example shows how to set the system-level QoS mapping using the
qos mapping precedence configuration command.
2948G-L3(config)# qos mapping precedence 0 wrr-weight 4
To show whether QoS mapping is enabled on the device, use the show qos switching command.
show qos switchingThis command has no keywords or arguments.
Privileged EXEC
The following example shows how to display whether QoS mapping is enabled using the show qos switching command.
2948G-L3# show qos switching QoS Based IP Switching enabled
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]
dest-int | Destination interface to which you want to display QoS mapping; optional. |
Privileged EXEC
The following example shows how to display the system-level QoS mapping using the show qos mapping command.
2948G-L3# show qos mapping
Precedence WRR-Weight
0 1
1 2
2 3
3 4
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 autolearnThis command has no keywords or arguments.
SDM autolearn is enabled.
Global configuration
To configure the size of each protocol region in the SDM, use sdm size command.
sdm size region-name{k-entries}#-of-entries
region-name | Name of the protocol region for which you want to configure the size. |
|
|
#-of-entries | Size can be entered either as multiples of 1K (that is 1024) entries or in |
Global configuration
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.
| 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.
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.
This command does not have any keywords or arguments.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Apr 14 09:47:18 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.