The ip netstream export version command configures the version number and AS option of the exported packets carrying IPv4 flow statistics.
The undo ip netstream export version command restores the default setting.
By default, the version number of the exported packets carrying IPv4 original flow statistics is 5 and no AS option is used. The version number of the exported packets carrying IPv4 flexible flow statistics is 9. Packets of V9 have no AS option and do not carry BGP next hop information.
ip netstream export version version [ origin-as | peer-as ] [ bgp-nexthop ]
undo ip netstream export version
Parameter |
Description |
Value |
---|---|---|
version |
Specifies the version number of exported packets carrying IPv4 flow statistics. |
The value of version is set to 5 or 9. |
origin-as |
Specifies the AS number recorded in the statistics as the original AS number. |
- |
peer-as |
Specifies the AS number recorded in the statistics as the peer AS number. |
- |
bgp-nexthop |
Configures the statistics to carry BGP next hop information. Currently, only V9 supports the exported packets carrying BGP next hop information. |
- |
Usage Scenario
The NDE exports NetStream flow statistics to the NSC. The version of exported packets must be the same as that configured on the NSC so that the NSC can parse the exported packets.
The format of exported packets in V5 is fixed and is not easy to expand. The format of exported packets in V9 is defined in templates and is easy to combine or expand. The statistics are exported more flexibly.
V9 is supported by most NSCs for its advantages. It is recommended that you set the version of exported packets carrying aggregation flow statistics to V9.
Precautions
Only one version can be specified on a device. The versions configured on all the devices on the network must be the same as the version configured on the NMS.
The AS option is used according to the actual situation of the AS configured on each device. The AS option affects only the packet statistics result, but does not affect the flows. The AS option is encapsulated in the AS option field carried in the NetStream packets sent to the NMS.