Management and Configuration Guide K/KA/KB.15.15
Enter this command on a remote switch to configure the exit port to use in a remote
mirroring session. You will configure the mirroring source on the local switch in the
next step.
The mirror endpoint ip command configures:
• The unique UDP port number to be used for the mirroring session on the source
switch. The recommended port range is from 7933 to 65535.
• The IP address of the source switch to use in the session.
• The IP address and exit-port number on the remote (endpoint) switch.
In a remote mirroring endpoint, the IP address of exit port and the remote destination
switch can belong to different VLANs.
Configuring the mirroring source on the local switch
Syntax
mirror 1 - 4 [name name-str ] remote ip src-ip src-udp-port
dst-ip [truncation]
The no mirror 1 - 4 command form removes both the mirroring session and
any mirroring sources previously assigned to the session by the following commands.
Configuring traffic-direction criteria to select traffic
Syntax
[ no ] [ interface port/trunk/mesh | vlan vid-# ]monitor
all in | out | both mirror 1 - 4 | name-str [ 1 - 4 |
name-str ...]
Configuring ACL criteria to select inbound traffic
Deprecated command:
Syntax
[ no ] [ interface port/trunk/mesh | vlan vid-# ]monitor ip
access-group acl-name in
mirror [ 1 - 4 | name-str ] [ 1 - 4 | name-str ...]
Configuring a mirroring policy to select inbound traffic
Syntax
class ipv4 | ipv6 classname [ no ] [seq-number] [ match |
ignore ip-protocol source-address destination-address ]
[precedence precedence-value] [tos tos-value] [ip-dscp
codepoint] [vlan vlan-id]
Syntax
policy mirror policy-name [no] [seq-number] [ class ipv4 | ipv6
classname action mirror session ] [ action mirror session
]... [ no ]
default-class action mirror session [ no ] [ interface
port/trunk | vlan vid-# ]
Configuring the mirroring source on the local switch 323