set port mirroring
6-34 Port Configuration
Defaults
None.
Mode
Switchcommand,read‐only.
Example
Thisexampleshowshowtodisplayportmirroringinformation.Inthiscase,fe.1.4isconfiguredas
asourceportandfe.1.11isatargetandmirroringhasbeenenabledbetweentheseports:
D2(su)->show port mirroring
Port Mirroring
==============
Source Port =
fe.1.4
Target Port =
fe.1.11
Frames Mirrored = Rx and Tx
Port Mirroring status enabled.
set port mirroring
Usethiscommandtocreateanewmirroringrelationshiportoenableordisableanexisting
mirroringrelationshipbetweentwoports.
Syntax
set port mirroring {create | disable | enable} source destination}
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Notes: When a port mirror is created, the mirror destination port is removed from VLAN 1’s egress
list after a reboot.
"MAC addresses will be learned for packets tagged with the mirror VLAN ID. This will prevent the
ability to snoop traffic across multiple hops.
create|disable|
enable
Creates,disablesorenablesmirroringsettingsonthespecifiedports.
source Specifiesthesourceportdesignation.Thisistheportonwhichthetraffic
willbemonitored.Foradetaileddescriptionofpossibleport‐stringvalues,
referto“PortStringSyntaxUsedintheCLI”on
page6‐1.
destination Specifiesthetargetportdesignation.Thisistheportthatwillduplicateor
“mirror”allthetrafficonthemonitoredport.
Foradetaileddescriptionofpossibleport‐stringvalues,referto“Port
StringSyntaxUsedintheCLI”onpage6‐1.