253
•
origin-as
—Specifies the source AS of the source address and the destination AS of the
destination address.
•
peer-as
—Specifies the ASs before and after the AS where the NetStream device resides as
the source AS and the destination AS, respectively.
, a flow starts at AS 20, passes AS 21 through AS 23, and then
reaches AS 24. NetStream is enabled on the device in AS 22.
•
The
origin-as
keyword defines AS 20 as the source AS and AS 24 as the destination AS.
•
The
peer-as
keyword defines AS 21 as the source AS and AS 23 as the destination AS.
Figure 72 Recorded AS information varies by different keyword configurations
To configure the NetStream data export format:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the
NetStream data export
format, and specify
whether to record AS
and BGP next hop
information.
•
Configure the version 5 format:
ip netstream export version
5
[
origin-as
|
peer-as
]
•
Configure the version 9 format:
ip netstream export version
9
{
origin-as
|
peer-as
}
[
bgp-nexthop
]
•
Configure the version 10
format:
ip netstream export version
10
{
origin-as
|
peer-as
}
[
bgp-nexthop
]
By default:
•
The NetStream data export uses
the version 9 format.
•
The peer AS numbers are
exported for the source and
destination.
•
The BGP next hop is not
exported.
AS 20
AS 21
AS 22
AS 23
Enable NetStream
Include
origin-as
in the command.
AS 20 is recorded as the source AS and
AS 24 as the destination AS.
AS 24
Include
peer-as
in the command.
AS 21 is recorded as the source AS, and
AS 23 as the destination AS.