230
Configuring IPv6 NetStream sampling
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a sampler.
sampler
sampler-name
mode
{
fixed | random
}
packet-interval
rate
For more information
about samplers, see
"Configuring samplers."
3.
Enter interface view.
interface
interface-type
interface-number
N/A
4.
Configure IPv6
NetStream sampling.
ipv6 netstream
{
inbound | outbound
}
sampler
sampler-name
By default, IPv6 NetStream
sampling is disabled.
Configuring attributes of the IPv6 NetStream data
export
Configuring the IPv6 NetStream data export format
An IPv6 NetStream entry for a flow records the source IPv6 address, destination IPv6 address, and their
respective AS numbers. You can choose to configure which AS numbers are to be exported as the source
AS and destination AS:
•
origin-as
—Exports statistics of the source AS originating the route for the source address and the
destination AS for the destination address.
•
peer-as
—Exports statistics of the peer ASs for the source and destination address.
For example, as shown in
, a flow starts at AS 20, passes AS 21 through AS 23, and then
reaches AS 24. IPv6 NetStream is enabled on the device in AS 22.
•
If the
origin-as
keyword is specified, this command exports statistics of AS 20 (the source AS) and
AS 24 (the destination AS).
•
If the
peer-as
keyword is specified, this command exports statistics of AS 21 (the source AS) and AS
23 (the destination AS).