314 CHAPTER 29: MIRRORING CONFIGURATIONWhen configuring local port mirroring, note that:■ You need to configure the source and destination ports for the local portmirroring to take effect.■ The destination port cannot be a member port of an aggregation group or aport enabled with LACP or STP.Displaying PortMirroringAfter performing the configurations above, you can execute the displaycommands in any view to view the mirroring running information, so as to verifyyour configurations.MirroringConfigurationExampleNetwork requirements The departments of a company connect to each other through the Switch 4210:■ Research and Development (R&D) department is connected to Switch Cthrough Ethernet 1/0/1.■ Marketing department is connected to Switch C through Ethernet 1/0/2.■ Data detection device is connected to Switch C through Ethernet 1/0/3The administrator wants to monitor the packets received on and sent from theR&D department and the marketing department through the data detectiondevice.Configurethe sourceport for theportmirroringgroupIn systemviewmirroring-group group-idmirroring-portmirroring-port-list { both |inbound | outbound }Use either approachYou can configure multiplesource ports at a time in systemview, or you can configure thesource port in specific portview. The configurations in thetwo views have the same effect.In port view interface interface-typeinterface-numbermirroring-group group-idmirroring-port { both |inbound | outbound }quitConfigurethedestinationport for theportmirroringgroupIn systemviewmirroring-group group-idmonitor-port monitor-port-idUse either approachThe configurations in the twoviews have the same effect.In port view interface interface-typeinterface-numbermirroring-group group-idmonitor-portTable 237 Configuring local port mirroringOperation Command DescriptionTable 238 Display configuration of mirroringOperation Command DescriptionDisplay port mirroringconfigurationdisplay mirroring-group { group-id |all | local }Available in anyview