Applying a mirroring policy on a port or VLAN interface
Enter one of the following
service-policy
commands from the global configuration context.
Context: Global configuration
Syntax
interface <PORT-LIST> service-policy policy-name in
Configures the specified ports with a mirroring policy that is applied to inbound traffic on each interface.
Separate individual port numbers in a series with a comma, for example,
a1,b4,d3
. Enter a range of ports by using a dash, for example,
a1-a5
.
The mirroring policy name you enter must be the same as the policy name you configured with the
policy mirror
command.
Syntax
vlan vlan-id service-policy policy-name in
Configures a mirroring policy on the specified VLAN that is applied to inbound traffic on the VLAN interface.
Valid VLAN ID numbers range from 1 to 4094.
The mirroring policy name you enter must be the same as the policy name you configured with the
policy mirror
command in the syntax
policy mirror.