52-20
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 52 Configuring Local SPAN, RSPAN, and ERSPAN
Configuring Local SPAN, RSPAN, and ERSPAN
When configuring monitor sessions, note the following information:
•
session_description
can be up to 240 characters and cannot contain special characters or spaces.
Note
You can enter 240 characters after the
description
command.
•
ERSPAN_source_span_session_number
can range from 1 to 66.
•
single_interface
is
interface
type slot
/
port
;
type
is
ethernet
,
fastethernet
,
gigabitethernet
, or
tengigabitethernet
.
Step 5
Router(config-mon-erspan-src)#
source
{{
single_interface
|
interface_list
|
interface_range
|
mixed_interface_list
|
single_vlan
|
vlan_list
|
vlan_range
|
mixed_vlan_list
} [
rx
|
tx
|
both
]}
Associates the ERSPAN source session number with
the source ports or VLANs, and selects the traffic
direction to be monitored.
Step 6
Router(config-mon-erspan-src)#
filter
single_vlan
|
vlan_list
|
vlan_range
|
mixed_vlan_list
(Optional) Configures source VLAN filtering when
the ERSPAN source is a trunk port.
Step 7
Router(config-mon-erspan-src)#
destination
Enters ERSPAN source session destination
configuration mode.
Step 8
Router(config-mon-erspan-src-dst)#
ip address
ip_address
Configures the ERSPAN flow destination IP address,
which must also be configured on an interface on the
destination router and be entered in the ERSPAN
destination session configuration (see the
“Configuring ERSPAN Destination Sessions” section
on page 52-22
,
Step 7
).
Step 9
Router(config-mon-erspan-src-dst)#
erspan-id
ERSPAN_flow_id
Configures the ID number used by the source and
destination sessions to identify the ERSPAN traffic,
which must also be entered in the ERSPAN
destination session configuration (see the
“Configuring ERSPAN Destination Sessions” section
on page 52-22
,
Step 8
).
Step 10
Router(config-mon-erspan-src-dst)#
origin ip address
ip_address
[
force
]
Configures the IP address used as the source of the
ERSPAN traffic.
Step 11
Router(config-mon-erspan-src-dst)#
ip ttl
ttl_value
(Optional) Configures the IP time-to-live (TTL) value
of the packets in the ERSPAN traffic.
Step 12
Router(config-mon-erspan-src-dst)#
ip prec
ipp_value
(Optional) Configures the IP precedence value of the
packets in the ERSPAN traffic.
Step 13
Router(config-mon-erspan-src-dst)#
ip dscp
dscp_value
(Optional) Configures the IP DSCP value of the
packets in the ERSPAN traffic.
Step 14
Router(config-mon-erspan-src-dst)#
vrf
vrf_name
(Optional) Configures the VRF name to use instead
of the global routing table.
Step 15
Router(config-mon-erspan-src-dst)#
end
Exits configuration mode.
Command
Purpose