Command Reference SPAN-RSPAN Commands
no monitor session session-num [ destination remote vlan remote-vlan-id interface interface-id ]
Use this command to remove the specified remote SPAN session, or remote the destination port of
the remote SPAN session.
default monitor session session-num [ destination remote vlan remote-vlan-id interface
interface-id ]
Use this command to remove the specified SPAN session, or remove the source port or destination
port of the SPAN session.
default monitor session session-num { source interface interface-id | destination interface
interface-id }
VLAN ID (remote VLAN excluded)
VLAN list (remote VLAN excluded)
Monitors the only received traffic.
Monitors the only transmitted traffic.
Monitors both received and transmitted traffic. This is the default.
Enables switching on the destination port. Switching function is
disabled by default.
Port monitoring is disabled by default.
Global configuration mode.
Use this command to configure SPAN or remote SPAN, and specify the source port or destination
port.
If the both, rx or tx is not specified for the source port, the both parameter is the default.
Configuring an access list for the source port indicates that only the traffic permitted by the access list
is monitored.
The switch feature is disabled on the destination port.
The following example configures the source port and destination port of the SPAN session.
Ruijie(config)# monitor session 1 source interface gigabitEthernet 0/1
Ruijie(config)# monitor session 1 destination interface gigabitEthernet 0/2