424
Predefined user roles
network-admin
Parameters
inbound
: Filters incoming traffic.
outbound
: Filters outgoing traffic.
acl ipv4-acl-number
: Specifies an IPv4 ACL by its number. For an IPv4 basic ACL, the value range is
2000 to 2999. For an IPv4 advanced ACL, the value range is 3000 to 3999.
Usage guidelines
NetStream filtering uses an ACL to identify intended packets.
•
If you want to collect data for specific flows, use the ACL permit statements to identify the flows.
NetStream collects data only for these flows.
•
If you do not want to collect data for specific flows, use the ACL deny statements to identify the
flows. NetStream does not collect data for these flows.
Examples
# Use ACL 2003 for outbound NetStream filtering on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip netstream outbound
[Sysname-GigabitEthernet1/0/1] ip netstream outbound filter acl 2003
ip netstream sampler
Use
ip netstream sampler
to enable NetStream sampling.
Use
undo ip netstream sampler
to disable NetStream sampling.
Syntax
ip netstream
[
inbound
|
outbound
]
sampler sampler-name
undo ip netstream
[
inbound
|
outbound
]
sampler
Default
NetStream sampling is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
inbound
: Enables NetStream sampling in the inbound direction.
outbound
: Enables NetStream sampling in the outbound direction.