66-15
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 66 Configuring SPAN and RSPAN
Configuration Example
The two categories of packet filtering are packet-based (good, error) or address-based
(unicast/multicast/broadcast). Packet-based filters can only be applied in the ingress direction. Packets
are classified as broadcast, multicast, or unicast by the hardware based on the destination address.
Note
When filters of both types are configured, only packets that pass both filters are spanned. For example,
if you set both “error” and “multicast,” only multicast packets with errors are spanned.
To configure packet type filtering, perform this task:
This example shows how to configure a session to accept only unicast packets in the ingress direction:
Switch(config)#
monitor session 1 filter address-type unicast rx
Configuration Example
The following is an example of SPAN configuration using some of the SPAN enhancements.
In this example, you configure a session to sniff unicast traffic arriving on interface Gi1/1.
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
monitor session 1 source interface gi1/1 rx
Switch(config)#
monitor session 1 destination interface gi1/2 encapsulation dot1q ingress
Switch(config)#
monitor session 1 filter address-type unicast rx
Switch(config)#
exit
Switch#
show monitor
Session 1
---------
Type : Local Session
Source Ports :
RX Only : Gi1/1
Destination Ports : Gi1/2
Encapsulation : DOT1Q
Ingress : Enabled
Learning : Disabled
Filter Addr Type :
RX Only : Unicast
Command
Purpose
Switch(config)# [
no
]
monitor session
{
session_number
}
filter
{
vlan
vlan_IDs
[
,
|
-
]
} |
{
packet-type
{
good
|
bad
}}
|
{
address-type {unicast
|
multicast
|
broadcast
}
[rx
|
tx
|
both
]}
Specifies filter sniffing of the specified packet types in
the specified directions.
For
session_number
, specifies the session number
identified with this SPAN session (1 through 6).
For
vlan_IDs
, specifies the VLAN.
You can specify both Rx and Tx type filters, as well as
specify multiple type filters at the same time (such as
good
and
unicast
to only sniff non-error unicast
frames). As with VLAN filters, if no type or filter is
specified, then the session sniffs all packet types.
Use the
no
keyword to restore the defaults.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...