beautypg.com

Allied Telesis AT-8100 Series User Manual

Page 467

background image

AT-8100 Switch Command Line User’s Guide

467

Creating the Port Mirror or Adding New Source Ports

The command to create the port mirror is the MIRROR INTERFACE
command. You must perform this command from the Port Interface mode
of the destination port of the port mirror. The command has this format:

mirror interface

source_ports

direction

receive|transmit|both

This example configures the port mirror to copy the ingress traffic on the
source port 3 to the destination port 5:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.5
awplus(config-if)# mirror interface port1.0.3 direction
receive

The switch immediately begins to copy the monitored traffic from the
source ports to the destination port as soon as you create the port mirror.

To add new source ports to the port mirror, return to the Port Interface
mode of the destination port and enter the same command. For example,
to monitor both the ingress and egress traffic on ports 11 and 12 to the
destination port 5, you enter:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.5
awplus(config-if)# mirror interface port1.0.11-port1.0.12
direction both

For reference information, refer to “MIRROR INTERFACE” on page 475.