Allied Telesis AT-DC2552XS User Manual

Page 248

Advertising
background image

Chapter 11: Port Parameter Commands

248

Section II: Layer 2 Switching

To remove a source port from a mirror port, use the NO MIRROR
command.

Confirmation Command

“SHOW MIRROR” on page 267

Examples

This example specifies port 1.0.5 as the mirror port to receive copies of
packets that port 1.0.8 receives and transmits:

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

This example specifies port 1.0.5 as the mirror port to receive copies of
packets that ports 1.0.2 and 1.0.4 receive:

awplus(config)# interface port1.0.5
awplus(config-if)# mirror interface port1.0.2,port1.0.4
direction receive

This example removes port 1.0.4 as a source port:

awplus(config)# interface port1.0.1
awplus(config-if)# no mirror interface port1.0.4

This example uses a hardware ACL to copy only TCP packets that port
1.0.1 and 1.0.2 receive and send the copies to port 1.0.24:

awplus(config)# access-list hardware mirr_acl1
awplus(config-ip-hw-acl)# copy-to-mirror tcp any any
awplus(config-ip-hw-acl)# exit
awplus(config)# interface port1.0.1-1.0.2
awplus(cofig-if)# access-group mirr_acl1
awplus(cofig-if)# exit
awplus(config)# interface port1.0.24
awplus(config-if)# mirror

This example cancels port 1.0.24 as the mirror port:

awplus(config)# interface port1.0.24
awplus(config-if)# no mirror

Advertising