set port mirror

Last Updated : Nov 06, 2012 |

Defines a port mirroring source-destination pair. The second port receives a copy of all packets sent to and received by the first port.

Syntax

set port mirror source-port module/port mirror-port module/port sampling sampling_value direction direction_value

Parameters

Parameter

Description

Possible Values

Default Value

module

Number of the module

port

Number of the port on the module. You can also specify a range of ports separated by a dash. For example:

10/3-4 for both ETH LAN ports on the front panel

sampling_ value

Specifies whether to allow or disable sampling of the transmissions

always, disable

direction_ value

The direction of transmissions to mirror

rx, tx, both

User level

read-write

Context

general

Example

To set up port mirroring from port 6/5 to port 10/6 in the Branch Gateway for all packets sent and received:

Gxxx-001(super)# set port mirror source-port 6/5
 mirror-port 10/6
 sampling
always direction both