The ip netstream export version command sets the version number and AS option of exported packets carrying information about original traffic statistics.
The undo ip netstream export version command sets the version number and AS option to the default value.
ip netstream export version version [ origin-as | peer-as ] [ bgp-nexthop ]
ipv6 netstream export version version [ origin-as | peer-as ]
undo { ip | ipv6 } netstream export version
| Parameter | Description | Value |
|---|---|---|
| ip | Indicates an IPv4 data flow. | - |
| ipv6 | Indicates an IPv6 data flow. | - |
| version | Specifies the version of the exported NetStream statistics. |
The value is an integer as 5 or 9. IPv6 original streams can be exported in V9 format. |
| origin-as | Indicates that the original AS number is the AS number of a specified IP address. | - |
| peer-as | Indicates that the peer AS number is the AS number of a specified IP address. | - |
| bgp-nexthop | Indicates the next hop of BGP. It determines whether packets are exported with information about the next hop of BGP. Version 5 does not support the next hop of BGP. | - |
By default, packets carrying information about original traffic statistics are exported in version 5 without the AS option.
# Configure packets carrying information about original traffic statistics to be exported in version 9 and adopt the peer AS number.
<sysname> system-view
[sysname] ip netstream export version 9 peer-as
# Set the format of the exported statistics of the original IPv6 stream to Version 9 and use the original AS number.
<sysname> system-view [sysname] ipv6 netstream export version 9 origin-as