ZyXEL Communications GS-2024 Switch User Manual


 
GS-2024 User’s Guide
212 Chapter 28 Command Examples
Figure 122 bandwidth-limit Command Example
28.8.3 mirror
Syntax:
mirror
mirror monitor-port <port-num> mirrored-port <port-num>
mirror direction <ingress|egress|both>
where
An example is shown next.
Enable port mirroring.
Enable the monitor port two.
Traffic is copied from port ten to port two in order to examine it in more detail without
interfering with the traffic flow on the original port(s).
Enable port mirroring for outgoing traffic.
Figure 123 mirror Command Example
ras(config)# interface port-channel 1
ras(config-interface)# bandwidth-limit
ras(config-interface)# bandwidth-limit ingress 16000
ras(config-interface)# bandwidth-limit scheme drop
Enables port mirroring on the interface.
monitor-port <port-
num> mirrored-port
<port-num>
Sets a monitor port (the port you copy the traffic to) and on
which port you mirror the traffic.
<ingress|egress|both>
= Enables port mirroring for incoming, outgoing or both
incoming and outgoing traffic.
Port mirroring is copying traffic from one or all ports to
another or all ports for external analysis.
ras(config)# mirror
ras(config)# mirror monitor-port 2 mirrored-port 10
ras(config)# mirror direction egress