Chapter 5 Port Configuration
Configuring ERSPAN
Establishing One ERSPAN Session
Command
Functions
ZXR10(config)#
monitor session
<
session-number
>
This establishes one ERSPAN
session.
Adding Source or Destination Port to
Session Entry
Step Command
Functions
1
ZXR10(config)#
interface
<
interface-name
>
Enter interface configuration
mode.
2
ZXR10(config-if)#
monitor session
<
sessio
n-number
>{
source
{[
direction
{
both
|
tx
|
rx
|
cpu-rx
|
cpu-tx
|
cpu-both
}]}|
destination
erspanflags
{
enable
|
disable
}
tpid 0x8100
ttl
<
ttl_number
>
128 vlan-id
<
vlan-id
>}
This adds source or
destination port to session
entry.
Displaying Session Details
Configured by User
Command
Functions
ZXR10(config)#
show monitor session
{
all
|<
session-n
umber
>}
This displays session details
configured by user.
ERSPAN Configuration
Example
F
IGURE
17 ERSPAN C
ONFIGURATION
E
XAMPLE
As shown in
Figure 1
, set up a tunnel between Switch1 and
Switch2, use interface gei_1/1 of Switch1 as mirror source port,
and configure ERSPAN mirroring. With this configuration, packets
passing through interface gei_1/1 of Switch1 will be encapsulated
Confidential and Proprietary Information of ZTE CORPORATION
55