The ip netstream export source command configures the source address for the exported packets carrying IPv4 flow statistics.
The undo ip netstream export source command deletes the configured source address for the exported packets carrying IPv4 flow statistics.
By default, no source address is configured in the system view or aggregation view for the exported packets carrying IPv4 flow statistics.
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the source IPv4 address of the exported packets carrying IPv4 flow statistics. |
The parameter must be set to an existing IP address on the device. |
Usage Scenario
If the NMS identifies the data source according to the source IP address in NetStream packets, you need to specify the source IP address for NetStream packets.
Precautions
NetStream prefers the source IP address configured in the aggregation view. If no source address is specified in an aggregation method, the source address configured in the system view is used.
This command must be performed; otherwise, the source address of output packets may be 0.0.0.0, and the output packets may be discarded during transmission or cannot be parsed by the NetStream server.
# In the system view, set the source address for the exported packets carrying IPv4 flow statistics to 10.1.1.1.
<HUAWEI> system-view [HUAWEI] ip netstream export source 10.1.1.1
# In the aggregation view, set the source address for the exported packets carrying IPv4 flow statistics to 10.2.2.2.
<HUAWEI> system-view [HUAWEI] ip netstream aggregation as [HUAWEI-aggregation-as] ip netstream export source 10.2.2.2