R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

137
Ste
p
Command
Remarks
2. Enter interface view.
interface interface-type interface-number N/A
3. Enable NetStream on the
interface.
ip netstream { inbound | outbound } Disabled by default.
Configuring NetStream filtering and sampling
Before you configure NetStream filtering and sampling, use the ip netstream command to enable
NetStream.
Configuring NetStream filtering
When you configure ACL-based NetStream filtering, follow these guidelines:
The NetStream filtering function is not effective on MPLS packets.
When NetStream filtering and sampling are both configured, packets are filtered first and then the
matching packets are sampled.
The ACL referenced by NetStream filtering must already exist and the function takes effect only after
the ACL is created. An ACL that is referenced by NetStream filtering cannot be deleted or modified.
For more information about ACLs, see ACL and QoS Configuration Guide.
To configure NetStream filtering:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number
N/A
3. Enable NetStream
filtering on the interface.
ip netstream filter acl acl-number
{ inbound | outbound }
Optional.
By default, no ACL is referenced
and IPv4 packets are not filtered.
4. Enable NetStream.
ip netstream { inbound | outbound } N/A
Configuring NetStream sampling
When you configure NetStream sampling, follow these guidelines:
When NetStream filtering and sampling are both configured, packets are filtered first and then the
matching packets are sampled.
A sampler must be created by using the sampler command before being referenced by NetStream
sampling.
A sampler that is referenced by NetStream sampling cannot be deleted. For more information
about samplers, see "Configuring sampler."
To configure NetStream sampling:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A