2-473
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
monitor capture mycap match
monitor capture mycap match
To define an expliciti in-line core filter, use the monitor capture mycap match command. To remove
it, use the no form of this command.
Switch# [no] monitor capture mycap match {any | mac mac-match-string | ipv4
ipv4-match-string | ipv6 ipv6-match-string}
To use a filter for MAC, use the format below
Switch# [no] monitor capture mycap match mac {src-mac-addr src-mac-mask | any | host
src-mac-addr} | {dest-mac-addr dest-mac-mask | any | host dest-mac-addr}
To use a filter for IPv4/IPv6, use one of the formats below
Switch# [no] monitor capture mycap match {ipv4 | ipv6} [src-prefix/length | any | host
src-ip-addr] [dest-prefix/length | any | host dest-ip-addr]
Switch# [no] monitor capture mycap match {ipv4 | ipv6} proto {tcp | udp}
[src-prefix/length | any | host src-ip-addr] [eq | gt | lt | neq <0-65535>]
[dest-prefix/length | any | host dest-ip-addr] [eq | gt | lt | neq <0-65535>]
Syntax Description
Defaults none
Command Modes Privileged EXEC mode
any Specifies “any” packet
mac mac-match-string Specifies a Layer 2 packet
ipv4 ipv4-match-string Specifies an IPv4 packet
ipv6 ipv6-match-string Specifies an IPv6 packet
match name Specifies a capture point
src-mac-addr Specifies source MAC address
src-mac-mask Specifies source MAC mask
host src-mac-addr Source (or destination) MAC (or IP) address
dest-mac-addr Specifies a destination MAC address
dest-mac-mask Specifies a destination MAC mask
host dest-mac-addr Specifies a source (or destination) MAC (or IP) address
src-prefix/length Specifies a source prefix / length
host src-ip-addr Specifies a host source IP address
dest-prefix/length Specifices a destination prefix / length
host dest-ip-addr Specifies a source (or destination) MAC (or IP) address
proto {tcp | udp} Specifies the protocol to be used
{eq | gt | lt | neq} <0-65535> Specifies Equal, Greater Than, Less than, Not Equal To