cc/td/doc/product/l3sw/2948g-l3/rel_12_0
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command Reference

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.

Default

QoS mapping is enabled.

Command Mode

Device configuration

Example

The following example shows how to enable QoS mapping using the qos switching configuration command.

2948G-L3# qos switching
Related 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.

Default

The default WRR-weights for precedence values 0, 1, 2, 3 are 1, 2, 3, and 4, respectively.

Command Mode

Device configuration

Example

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
Related 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 Mode

Privileged EXEC

Example

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
Related 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 Mode

Privileged EXEC

Example

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
Related 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.

Default

SDM autolearn is enabled.

Command Mode

Global configuration

sdm size

To configure the size of each protocol region in the SDM, use sdm size command.

sdm size region-name{k-entries}#-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

#-of-entries

Size can be entered either as multiples of 1K (that is 1024) entries or in
absolute number of entries.

Command Mode

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 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.

Syntax Description

This command does not have any keywords or arguments.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Apr 14 09:47:18 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.