R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)

96
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure the version
for NetStream export
format, and specify
whether to record AS
and BGP next hop
information.
ip netstream export version 5
[ origin-as | peer-as ]
ip netstream export version 9
[ origin-as | peer-as ]
[ bgp-nexthop ]
Optional.
By default:
NetStream traditional data export
uses version 5.
IPv4 NetStream aggregation data
export uses version 8.
MPLS flow data is not exported.
The peer AS numbers are exported
for the source and destination.
The BGP next hop is not exported.
For more information about an AS, see Layer 3IP Routing Configuration Guide.
A NetStream entry for a flow records the source IP address and the destination IP address, each with two
AS numbers. The source IP address includes the source AS from which the flow originates and the peer
AS from which the flow travels to the NetStream-enabled device. The destination IP address includes the
destination AS to which the flow is destined and the peer AS to which the NetStream-enabled device
passes the flow.
To specify which AS numbers to record for the source and destination IP addresses, include the peer-as
or origin-as keyword. For example, as shown in Figure 33, a f
low starts at AS 20, passes AS 21 through
AS 23, and then reaches AS 24. NetStream is enabled on the device in AS 22. If the peer-as keyword
is provided, the command records AS 21 as the source AS and AS 23 as the destination AS. If the
origin-as keyword is provided, the command records AS 20 as the source AS and AS 24 as the
destination AS.
Figure 33 Recorded AS information varies with different keyword configurations
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.