The ip netstream export host command configures the destination IP address and destination UDP port number for the exported packets carrying IPv4 flow statistics.
The undo ip netstream export host command deletes the configured destination IP address and destination UDP port number for the exported packets carrying IPv4 flow statistics.
By default, no destination IP address and destination UDP port number are configured in the system view or aggregation view for the exported packets carrying IPv4 flow statistics.
ip netstream export host ip-address port-number [ vpn-instance vpn-instance-name ]
undo ip netstream export host ip-address port-number [ vpn-instance vpn-instance-name ]
Parameter |
Description |
Value |
---|---|---|
ip-address | Specifies the destination IPv4 address of the exported packets carrying IPv4 flow statistics. | - |
port-number | Specifies the destination UDP port number of the exported packets carrying IPv4 flow statistics. | The value is an integer that ranges from 1 to 65535. |
vpn-instance vpn-instance-name | Specifies the name of the VPN instance to which the specified destination address belongs. | The value is the name of an existing VPN instance. |
Usage Scenario
After finishing data collection, the NDE sends the collected data to the NSC. This command specifies the destination address of the collected data, that is, the NSC IP address.
Precautions
When you run the ip netstream export host command in the system view, this command configures the destination address for the exported packets carrying IPv4 original flow statistics and IPv4 flexible flow statistics; when you run this command in the aggregation view, this command configures the destination address for the exported packets carrying IPv4 aggregation flows. The exported packets carrying aggregation flow statistics preferentially use the destination address configured in the aggregation view. If the destination address is not configured in the aggregation view, the exported packets carrying aggregation flow statistics use the destination address configured in the system view.
You can configure two destination addresses in the system view or aggregation view to implement NSC backup. To configure a third destination IP address, run the undo netstream export ip host command to delete an existing one first; otherwise, the system displays a message indicating that the maximum number of addresses is exceeded and the configuration fails.
# Set the destination IP address for the exported packets carrying original flow statistics to 10.1.1.1, and UDP port number to 222.
<HUAWEI> system-view [HUAWEI] ip netstream export host 10.1.1.1 222
# Set the destination IP address for the exported packets carrying aggregation flow statistics to 10.2.2.1, and UDP port number to 255.
<HUAWEI> system-view [HUAWEI] ip netstream aggregation as [HUAWEI-aggregation-as] ip netstream export host 10.2.2.1 255