252
Step
Command
Remarks
3.
Enable NetStream on
the interface.
ip netstream
{
inbound
|
outbound
}
By default, NetStream is disabled on
an interface.
Configuring NetStream filtering
When NetStream filtering and sampling are both configured, packets are filtered first, and then the
permitted packets are sampled.
To configure NetStream filtering:
Step
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
{
inbound
|
outbound
}
filter acl ipv4-acl-number
By default, NetStream filtering is
disabled. NetStream collects
statistics of all IPv4 packets
passing through the interface.
Configuring NetStream sampling
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a sampler.
sampler sampler-name mode
fixed packet-interval n-power
rate
For more information about a sampler,
see "
3.
Enter interface view.
interface interface-type
interface-number
N/A
4.
Enable NetStream
sampling.
ip netstream
{
inbound
|
outbound
}
sampler
sampler-name
By default, NetStream sampling is
disabled.
Configuring attributes of the NetStream data
export
Configuring the NetStream data export format
You can configure NetStream data export version, and expand the export data to include the
following additional information:
•
Statistics about source AS, destination AS, and peer ASs.
•
Statistics about BGP next hop (available only in version 9 and version 10 formats).
A NetStream entry records the source IP address and destination IP address, and two AS numbers
for each IP address. The
origin-as
and
peer-as
keywords in the
ip netstream export version
command specify the AS numbers to be exported.
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...