178Usage guidelinesA NetStream entry for a flow records the source IP address and destination IP address, and two ASnumbers for each IP address. You can choose to configure which AS numbers to be exported as thesource AS and destination AS.Examples# Configure the device to export NetStream data in version 5 format and to specify the NetStream datato include the source AS and destination AS. system-view[Sysname] ip netstream export version 5 origin-asip netstream filterUse ip netstream filter to enable ACL-based NetStream filtering on an interface.Use undo ip netstream filter to disable the function.Syntaxip netstream filter acl acl-number { inbound | outbound }undo ip netstream filter acl acl-number { inbound | outbound }DefaultNetStream filtering is disabled. NetStream collects statistics about all IPv4 packets passing through theinterface.ViewsInterface viewDefault command level3: Manage levelParametersacl acl-number: Specifies an ACL number in the range of 2000 to 3999.inbound: Filters incoming traffic.outbound: Filters outgoing traffic.Usage guidelinesThe NetStream filtering function is not effective on MPLS packets.If NetStream filtering and sampling are both configured, packets are filtered first and then the permittedpackets are sampled.An ACL referenced by NetStream filtering must already exist and this command takes effect only after theACL is created. An ACL that is referenced by NetStream filtering cannot be deleted or modified. For moreinformation about ACLs, see ACL and QoS Configuration Guide.Examples# Reference ACL 2003 to enable NetStream filtering in the outbound direction of GigabitEthernet2/0/0. system-view[Sysname] interface gigabitethernet 2/0/0[Sysname-GigabitEthernet2/0/0] ip netstream outbound