The ip netstream export source command configures the source address of the packets carrying NetStream statistics.
The undo ip netstream export source command disables the configuration of the source address.
By default, no source address from which NetStream statistics are output is configured.
{ ip | ipv6 } netstream export source { ip-address | ipv6 ipv6-address }
undo { ip | ipv6 } ip netstream export source [ ipv6 ]
| Parameter | Description | Value |
|---|---|---|
| ip | Indicates an IPv4 data flow. | - |
| ipv6 | Indicates an IPv6 data flow. The NetStream aggregation view does not support this parameter. |
- |
| ip-address | Specifies the source IPv4 address of UDP packets carrying NetStream statistics. | - |
| ipv6 ipv6-address | Specifies the source IPv6 address of UDP packets carrying NetStream statistics. | - |
If the NMS needs to identify the data source according to the source IP address in NetStream packets, specify the source IP address for NetStream packets using this command. The type (IPv4 or IPv6) of the source IP address must be the same as that of the NMS address.
The source IP address specified in the aggregation view takes precedence over that specified in the system view. If no source IP address is specified in the aggregation view, the source IP address specified in the system view takes effect.
If the NMS address is an IPv6 address, the source address must be configured. Otherwise, no NetStream flow will be output.
Two source IP addresses (one IPv4 address and one IPv6 address) can be configured in the system or NetStream aggregation view. The two addresses are independent of each other.
<sysname>system-view [sysname] ip netstream export source 1.0.0.3
# Set the source IP address of the output aggregated flows to 1.0.0.4.
<sysname> system-view
[sysname] ip netstream export source as
[sysname-aggregation-as] ip netstream export source 1.0.0.4