![]() |
Layer 3 Switching Software Feature and Configuration Guide, 12.0(4a)WX5(11a)
|
|||||||||||||
Layer 3 Switching Command Reference
![]() |
||||||||||||||
|
Table of ContentsLayer 3 Switching Command ReferencePort Snooping Commands QoS Commands Layer 3 Switching Command ReferenceThis appendix provides a command reference for those Cisco IOS commandsor aspects of the commandsthat are unique to Layer 3 switching. Port Snooping CommandsPort snooping lets you transparently mirror traffic from one source port to a destination port. The following commands let you set up and monitor snooping. snoopTo set up port-based traffic mirroring, or snooping, use the snoop command. To disable snooping, use the no form of this command.
Syntax Description
|
|
Direction of traffic on the source port or ports that is monitored: receive, transmit, or both. |
Snooping is disabled on all interfaces.
The snooping destination port can be any port in the system, except for the source port, the Ethernet management port on the route processor, or any port configured for Fast EtherChannel.
The snooping source port can be any port on an interface module.
The following example shows how to set up bidirectional port snooping using the snoop interface configuration command. In this example, the destination port is 12/0/15 and the source port is 0/0/1.
To display the current snooping sessions, use the show snoop command.
The following example shows output from the show snoop command.
To display the virtual circuits being used by the snooping feature, use the show snoop-vc command.
The following example shows output from the show snoop-vc command.
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.
This command has no keywords or arguments.
The following example shows how to enable QoS mapping using the qos switching configuration command.
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.
The default WRR-weight for a precedence value n is 2 ^ n.
When a precedence value n is specified, it implicitly assigns the same WRR-weight to the precedence n + 1.
The following example shows how to set the system-level QoS mapping using the qos mapping-precedence configuration command.
To show whether QoS mapping is enabled on the device, use the show qos switching command.
This command has no keywords or arguments.
The following example shows how to display whether QoS mapping is enabled using the show qos switching command.
To show the QoS mapping in effect at the system or interface level, use the show qos mapping command.
|
Source interface from which you want to display QoS mapping; optional. |
|
|
Destination interface to which you want to display QoS mapping; optional. |
The following example shows how to display the system-level QoS mapping using the show qos mapping command.