JetStream 52-Port Gigabit Stackable L3 Managed Switch CLI Guide
26.2 monitor session source interface
Description
The monitor session source
interface
command is used to configure the
monitored port. To delete the corresponding monitored port, please use no
monitor session source
interface
command.
Syntax
monitor session
session_num
source
interface
{ gigabitEthernet
port |
ten-gigabitEthernet
port |
port-channel
lagid
}
mode
no monitor session
session_num
source
interface
{ gigabitEthernet
port-list
|
ten-gigabitEthernet
port |
port-channel
lagid
}
mode
Parameter
session_num
—— The monitor session number, the value of which is 1.
port
—— The Gigabit/Ten-Gigabit Ethernet port number.
lagid
—— Specify the ID of the LAG.
mode
—— The monitor mode. There are three options: rx, tx and both. Rx
(ingress monitoring mode), means the incoming packets received by the
monitored port will be copied to the monitoring port. TX (egress monitoring
mode), indicates the outgoing packets sent by the monitored port will be
copied to the monitoring port. Both (ingress and egress monitoring), presents
the incoming packets received and the outgoing packets sent by the
monitored port will both be copied to the monitoring port.
Command Mode
Global Configuration Mode
User Guidelines
1. Monitored ports number is not limited, but it can’t be the monitoring port
at the same time.
2. Whether the monitoring port and monitored ports are in the same VLAN
or not is not demanded strictly.
3. The monitoring port cannot be link-aggregation member.
Example
Create monitor session 1, then configure Gigabit Ethernet port 4 as
monitored ports and enable ingress monitoring:
T3700G-52TQ(config)#monitor session 1 source interface
gigabitEthernet 1/0/4 rx
213