Configuring Mirroring
-
To create a named mirror instance, use the following
command:
create mirror mirror_name {to [port port | port-list port_list loopback-port port] { remote-tag rtag } | remote-ip remote_ip_address {{ vr } {vr_name } {from [ source_ip_address | auto-source-ip]}{ping-check [on | off]} priority priority_value ]} {description mirror-desc}
-
If you want to configure mirroring on
multiple ports, and did not configure this with the above create command, use the following
command using the port-list option:
configure mirror mirror_name {to [port port | port-list port_list | loopback port port] | remote-ip {add} remote_ip_address {{vr} vr_name } {from [source_ip_address | auto-source-ip]} {ping-check [on | off]}] {remote-tag rtag | port none} {priority priority_value}
The port-list is a list of monitor ports that transmit identical copies of mirrored packets. The loopback-port is an unused port that is required when you mirror to a port-list. The loopback-port is not available for switching user data traffic. Certain L2 control protocol packets, such as STP, LACP, and LLDP, cannot be mirrored with one-to-many mirroring. The remote IP address option allows you enable hardware mirroring of Ethernet frames to a specified remote IPv4 address, which can reside zero or more router hops away.
For high availability, you can add up to four redundant remote IP addresses. If you are adding another (redundant) remote IP address to an existing mirror that already has a remote IP address configured, you must use the add option.
-
Mirroring is disabled by default. To enable mirroring, use
one of the following commands:
- enable mirror mirror_name
- enable mirror to [port port | port-list port_list loopback-port port] {remote-tag tag}
- enable mirror {mirror_name} to remote-ip remote_ip_address {{vr} vr_name} {priority priority_value} {from [source_ip_address | auto-source-ip]} {ping-check [on | off]}]
-
To disable mirroring, use the following command:
disable mirror [mirror_name | all]
-
To remove one or all remote IP addresses, use the following command:
configure mirror {mirror_name to remote-ip delete [all | remote_ip_address {{vr} vr_name}] }To delete all or the last remaining remote IP address, you must disable the mirror first.