R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)
93
Ste
p
Command
Remarks
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 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 cannot be empty. 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 ACL-based
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.
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
2. Enter interface view.
interface interface-type interface-number N/A
3. Configure NetStream
sampling.
ip netstream sampler sampler-name { inbound |
outbound }
Disabled by default.










