Page 25 | AlliedWare Plus™ OS How To Note: Switching
Port mirroring
Port mirroring
This example shows how to send port
1
.0.23 a copy of all traffic that ingresses and egresses
port
1
.0.2.
In other words, port
1
.0.23 is the mirror port, and port
1
.0.2 is the port that is being
mirrored.
First, enter Global Configuration mode and enter the command:
awplus(config)#interface port1.0.23
This puts you in Interface Configuration mode for port
1
.0.23. Then enter the command:
awplus(config-if)#mirror interface port1.0.2 direction both
To check the configuration, enter Privileged Exec mode and enter the command:
awplus#show mirror
The output looks like this:
Mirror Test Port Name: port1.0.23
Mirror option: Enabled
Mirror direction: both
Monitored Port Name: port1.0.2
1.0.3
1.0.2
1.0.4
AlliedWare Plus
Switch
1.0.23
port being
monitored
mirror port
mirroring.eps