Step 1 | configuration terminal
Example:
switch# config t
switch(config)#
|
Enters global
configuration mode.
|
Step 2 | monitor erspan
switch-id
switch-id
Example:
switch(config)# monitor erspan switch-id 1009
|
Configures the
ERSPAN global switch ID. The switch ID is applicable for all ERSPAN Type III
sessions. Default value is 0.
|
Step 3 |
monitor erspan granularity
1588
Example:
switch(config)# monitor erspan granularity 1588
|
Specifies
granularity for all ERSPAN Type III sessions. 1588 (in seconds or nanoseconds)
is the only option available and it is the default value.
|
Step 4 | monitor session
span-session-number
type
{erspan-source |
local}
Example:
switch(config)# monitor session 1 type erspan-source
switch(config-erspan-src)#
|
Defines an
ERSPAN source session using the session ID and the session type, and places the
command in ERSPAN monitor source session configuration mode.
The
span-session-number argument range is from 1 to
1024. The same session number cannot be used more than once.
The session
IDs for source sessions are in the same global ID space, so each session ID is
globally unique for both session types.
The session ID
(configured by the
span-session-number argument) and the session type
(configured by the
erspan-source keyword) cannot be changed once entered.
To change session ID or session type, use the
no version of the command to remove the session and
then recreate the session through the command with a new session ID or a new
session type.
|
Step 5 | header-type
version
Example:
switch(config-erspan-src)# header-type 3
|
Changes the
ERSPAN source session from Type II to Type III.
Note
|
You can use
the
no form of
this command to change an ERSPAN source session from Type III to Type II.
|
|
Step 6 | description
erspan_session_description
Example:
switch(config-erspan-src)# description source1
| (Optional)
Describes the
ERSPAN source session.
The
erspan_session_description argument can be up to 240
characters and cannot contain special characters or spaces.
|
Step 7 | source interface {
ethernet
slot/chassis number |
portchannel
number }
Example:
switch(config-erspan-src)# source interface eth 1/1
|
Associates the
ERSPAN source session number with the source ports (1-255).
|
Step 8 | source vlan
number
Example:
switch(config-erspan-src)# source vlan 1
|
Associates the
ERSPAN source session number with the VLANs (1-4096).
|
Step 9 | source vsan
number
Example:
switch(config-erspan-src)# source vsan 1
|
On Cisco Nexus
5000 Series switches, specifies the VSAN ID number. The range is 1 to 4093. On
Cisco Nexus 5500 Series switches, you cannot configure source VSANs.
|
Step 10 | destination ip
ip-address
Example:
switch(config-erspan-src)# destination ip 192.0.2.2
|
Configures the
destination IP address in the ERSPAN session. Only one destination IP address
is supported per ERSPAN source session.
|
Step 11 | erspan-id
flow-id
Example:
switch(config-erspan-src)# erspan-id 5
|
Configures the
flow ID to identify the ERSPAN flow. The range is from 1 to 1023.
|
Step 12 | vrf {vrf-name |
default }
Example:
switch(config-erspan-src)# vrf default
|
Configures the
VRF to use instead of the global routing table. You can use a VRF that you have
specifically configured or the default VRF.
|
Step 13 | [no]
filter
access-group
acl_filter
Example:
switch(config-erspan-src)# filter access-group erspan_acl_filter
|
Configures
the ACL filter for packets in this ERSPAN session. The ACL filter can be a MAC
or an IP access-list.
|
Step 14 | ip ttl
ttl-number
Example:
switch(config-erspan-src)# ip ttl 5
| (Optional)
Configures the
IP time-to-live (TTL) value of the packets in the ERSPAN traffic. Valid values
are from 1 to 255. The default value is 255.
|
Step 15 | ip dscp
dscp_value
Example:
switch(config-erspan-src)# ip dscp 42
| (Optional)
Configures the
IP Differentiated Services Code Point (DSCP) value of the packets in the ERSPAN
traffic. Valid values are from 0 to 63. The default value is 0.
|
Step 16 | no shut
Example:
switch(config-erspan-src)# no shut
|
Enables the
ERSPAN source session. By default, the session is created in the shut state.
Note
|
On Cisco
Nexus 5000 Series switches, only two ERSPAN source sessions can be running
simultaneously. On Cisco Nexus 5500 Series switches, up to four source sessions
can be running simultaneously.
|
|
Step 17 | exit
Example:
switch(config-erspan-src)# exit
switch(config)# exit
|
Updates the
configuration and exits ERSPAN source session configuration mode.
|
Step 18 | copy running-config startup-config
Example:
switch(config-erspan-src)# copy running-config startup-config
| (Optional)
Copies the
running configuration to the startup configuration.
|