A SERVICE OF

logo

GS-4012F/4024 User’s Guide
Chapter 41 Command Examples 282
41.8.6 mirror
Syntax:
mirror
mirror dir <ingress|egress|both>
where
An example is shown next.
Enable port mirroring.
Enable the monitor port three.
Enable ports one, four, five and six for configuration.
Enable port mirroring on the ports.
Enable port mirroring for outgoing traffic. Traffic is copied from ports one, four, five and
six to port three in order to examine it in more detail without interfering with the traffic
flow on the original port(s).
Figure 183 mirror Command Example
41.8.7 gvrp
Syntax:
gvrp
GVRP (GARP VLAN Registration Protocol) is a registration protocol that defines a way for
switches to register necessary VLAN members on ports across the network. Enable this
function to permit VLANs groups beyond the local switch.
An example is shown next.
Enables port mirroring on the interface.
<ingress|egress|both>
= Enables port mirroring for incoming, outgoing or both
incoming and outgoing traffic.
Port mirroring copies traffic from one or all ports to another
or all ports for external analysis.
ras(config)# mirror-port
ras(config)# mirror-port 3
ras(config)# interface port-channel 1,4-6
ras(config-interface)# mirror
ras(config-interface)# mirror dir egress