|
|
This appendix provides a command reference for those Cisco IOS commands--or aspects of the commands--that are unique to Layer 3 switching.
Port snooping lets you transparently mirror traffic from one or more source ports to a destination port. The following commands let you set up and monitor snooping.
To set up port-based traffic mirroring, or snooping, use the snoop command. To disable snooping, use the no form of this command.
snoop interface source_port direction snoop_direction
source_port | Number of the port or ports being monitored. |
direction | Direction of traffic on the source port or ports that is monitored: receive, transmit, or both. |
Snooping is disabled on all interfaces.
Interface configuration
The snooping destination port can be any port in the system, except for the source port or ports, the Ethernet management port on the route processor, or any ports configured for Fast EtherChannel.
The snooping source port can be any port on an interface module.
There can be multiple snooping destination ports operating simultaneously, but only one destination port can be used per snooping session.
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.
8500CSR# configure terminal 8500CSR(config)# interface fa 12/0/15 8500CSR(config-if)# shutdown 8500CSR(config-if)# snoop interface fa 0/0/1 direction both 8500CSR(config-if)# no shutdown
show snoop
To display the current snooping sessions, use the show snoop command.
show snoop [interface destination_port]
destination_port | Number of the snooping interface. |
Privileged EXEC
The following example shows output from the show snoop command.
8500CSR# show snoop Snoop Test Port Name: FastEthernet1/0/4 (interface status=SNOOPING) Snoop option: (configured=enabled)(actual=enabled) Snoop direction: (configured=receive)(actual=receive) Monitored Port Name: (configured=FastEthernet1/0/3)(actual=FastEthernet1/0/3)
show snoop-vc
To display the virtual circuits being used by the snooping feature, use the show snoop-vc command.
show snoop-vc [interface destination_port]
destination_port | Snoop monitoring port. |
Privileged EXEC
The following example shows output from the show snoop-vc command.
8500CSR# show snoop-vc
Snooping Snooped
Interface VPI VCI Type X-Interface X-VPI X-VCI Dir Status
FastEthernet1/0/4 4 223 PVC FastEthernet1/0/3 0
35 RX UP
FastEthernet1/0/4 4 224 PVC FastEthernet1/0/3 0
36 RX UP
FastEthernet1/0/4 8 223 PVC FastEthernet1/0/3 0
57 RX UP
FastEthernet1/0/4 8 224 PVC FastEthernet1/0/3 0
58 RX UP
FastEthernet1/0/4 8 225 PVC FastEthernet1/0/3 0
59 RX UP
.........
show snoop
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.
8500CSR# qos switching
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 [source source_int] [destination dest_int] precedence value wrr-weight weight
source_int | Source interface from which you want to define a traffic precedence; optional. |
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 15 inclusive. This specifies the weight assigned to traffic with the given precedence value. |
The default WRR-weight for a precedence value n is 2 ^ n.
Device configuration
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.
8500CSR(config)# qos mapping precedence 0 wrr-weight 4
qos switching
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.
8500CSR# show qos switching QoS Based IP Switching enabled
show qos mapping
To show the QoS mapping in effect at the system or interface level, use the show qos mapping command.
show qos mapping [source source_int] [destination dest_int]
source_int | Source interface from which you want to display QoS mapping; optional. |
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.
8500CSR# show qos mapping
Precedence WRR-Weight
0 1
1 2
2 4
3 8
show qos switching
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Aug 2 15:42:04 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.