Configuring netstream filtering and sampling, Configuring netstream filtering, Configuring netstream sampling – H3C Technologies H3C MSR 50 User Manual

Page 109

Advertising
background image

Step Command

Remarks

221.

Enter interface view.

interface interface-type interface-number

N/A

222.

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:

Step Command

Remarks

223.

Enter system view.

system-view

N/A

224.

Enter interface view.

interface interface-type interface-number N/A

Optional.

225.

Enable ACL-based

NetStream filtering on the
interface.

ip netstream filter acl acl-number
{ inbound | outbound }

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:

Step Command

Remarks

226.

Enter system view.

system-view

N/A

227.

Enter interface view.

interface interface-type interface-number

N/A

96

Advertising