MES53xx, MES33xx, MES23xx Ethernet Switch Series
143
console (config)#
logging console errors
Clear the log file:
console#
clear logging file
Clear Logging File [y/n]y
7.6
Port mirroring (monitoring)
Port mirroring function is used for network traffic management by forwarding copies of ingress
and/or egress packets from the single or multiple monitored ports to the controlling port.
The controlling port has the following restrictions:
–
The port cannot act as a monitored and controlling port at the same time.
–
The port cannot belong to a port group.
–
There should be no IP interface set for this port.
–
GVRP must be disabled for this port.
Monitored ports have the following restrictions:
–
The port cannot act as a monitored and controlling port at the same time.
Global configuration mode commands
Command line prompt in the global configuration mode is as follows:
console(config)#
Table 5.149. Global configuration mode commands
Command
Value/Default value
Action
port monitor mode
{monitor-only | network}
-/monitor-only
8
Specify port operation mode:
- monitor-only -
ingress frames on the port are dropped;
- network -
allow exchange of data;
no port monitor mode
Return the default value.
port monitor remote vlan
vlan_id
[cos
priority
] [tx |
rx]
vlan_id: (1..4094);
priority: (0..7)/0
Destination of the VLAN for remote monitoring (RSPAN) to
which the packets from monitored interfaces will be placed.
no port monitor remote
vlan
vlan_id
Remove the VLAN for remote monitoring.
Ethernet interface configuration mode commands
Command line prompt in the Ethernet interface configuration mode is as follows:
console(config-if)#
These commands cannot be executed in Ethernet interface range configuration mode.
Table 5.150. Commands available in the Ethernet interface configuration mode
Command
Value/Default value
Action
port monitor {remote
|gigabitethernet
gi_port
|
tengigabitethernet
te_port
|
fortygigabitethernet
fo_port
|
vlan
vlan_id
} [rx | tx]
gi_port: (1..8/0/1..48);
te_port: (1..8/0/1..24);
fo_port: (1..8/0/1..4)
Enable monitoring function on the interface. This interface
will be the controlling port for the monitored port specified
in the command.
-
gi_port, te_port, fo_port
– controlled port;
-
rx
- copy packets received by the monitored port
-
tx
- copy packets sent by the monitored port
When the rx/tx parameter is not specified, all
packets will be copied from the monitored port.