CLI Guide
You can activate ow-based monitoring for a monitoring session by entering the flow-based enable
command in the Monitor Session mode. When you enable this capability, trac with particular ows that are
traversing through the ingress and egress interfaces are examined and, appropriate ACLs can be applied in both
the ingress and egress direction. Flow-based monitoring conserves bandwidth by monitoring only specied trac
instead all trac on the interface. This feature is particularly useful when looking for malicious trac. It is available
for Layer 2 and Layer 3 ingress and egress trac. You may specify trac using standard or extended access-lists.
This mechanism copies all incoming or outgoing packets on one port and forwards (mirrors) them to another port.
The source port is the monitored port (MD) and the destination port is the monitoring port (MG).
Related Commands
deny — congures a lter to drop packets.
permit — congures a lter to forward packets.
seq — assigns a sequence number to a deny or permit lter in an IP access list while creating the lter.
seq
Assign a sequence number to a deny or permit lter in an extended IP access list while creating the lter.
Syntax
seq sequence-number {deny | permit} {ipv6-protocol-number | icmp | ip | tcp |
udp} {source mask | any | host ipv6-address} {destination mask | any | host
ipv6-address} [operator port [port]] [count [byte]] [dscp value] [order]
[fragments] [log [interval minutes] [threshold-in-msgs [count]] [monitor]
Parameters
sequence-number Enter a number from 0 to 4294967290. The range is from 1 to 65534.
deny Enter the keyword deny to congure a lter to drop packets meeting this condition.
permit Enter the keyword permit to congure a lter to forward packets meeting this criteria.
ipv6-protocol-
number
Enter a number from 0 to 255 to lter based on the protocol identied in the IP protocol
header.
icmp Enter the keyword icmp to congure an ICMP access list lter.
ip Enter the keyword ip to congure a generic IP access list. The keyword ip species that
the access list permits all IP protocols.
tcp Enter the keyword tcp to congure a TCP access list lter.
udp Enter the keyword udp to congure a UDP access list lter.
source Enter an IP address in dotted decimal format of the network from which the packet was
received.
mask (OPTIONAL) Enter a network mask in /prex format (/x) or A.B.C.D. The mask, when
specied in A.B.C.D format, may be either contiguous or non-contiguous.
any Enter the keyword any to specify that all routes are subject to the lter.
host ipv6-address Enter the keyword host and then enter the IPv6 address to specify a host IP address or
hostname.
operator (OPTIONAL) Enter one of the following logical operands:
• eq = equal to
• neq = not equal to
• gt = greater than
246 Access Control Lists (ACL)