376
Predefined user roles
network-admin
Parameters
inbound: Enables NetStream for incoming traffic.
outbound: Enables NetStream for outgoing traffic.
Examples
# Enable NetStream for incoming traffic on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip netstream inbound
ip netstream filter
Use ip netstream filter to enable NetStream filtering on an interface.
Use undo ip netstream filter to disable NetStream filtering.
Syntax
ip netstream { inbound | outbound } filter acl ipv4-acl-number
undo ip netstream { inbound | outbound } filter
Default
NetStream filtering is disabled. NetStream collects statistics about all IPv4 packets passing through
an interface.
Views
Interface view
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