Command Reference ERSPAN Commands
The following example shuts down ERSPAN session 2.
Ruijie(config)# monitor session 2 erspan-source
Ruijie(config-mon-erspan-src)#shutdown
Displays the mirror sessions.
Use this command to configure the ERSPAN source interface. Use the no form of this command to
delete this source interface.
source interface single-interface [ rx | tx | both ]
no source interface single-interface [ rx | tx | both ]
Use this command to configure the flow-based ERSPAN source interface. Use the no form of this
command to delete this source interface.
source interface single-interface rx acl acl-name
Source interface of the mirror.
Receives only the traffic of Rx direction.
Receives only the traffic of Tx direction.
(Default ) Receives the traffic of Tx and Rx directions.
ERSPAN configuration mode
To return to privileged EXEC mode, enter the end command or use the Ctrl-C key combination.
To return to global configuration mode, enter the exit command.
The following example configures an ERSPAN source interface.
Ruijie(config)# monitor session 2 erspan-source
Ruijie(config-mon-erspan-src)#source interface gigabitethernet 0/1 both
The following example configures a flow-based ERSPAN source interface.
source interface gigabitEthernet 0/3 rx acl 90