netstream export host

Function

The ip netstream export host command configures a destination IP address and a UDP port number for the output NetStream IPv4 flows.

The undo ip netstream export host command deletes a destination IP address and a UDP port number configured for the output NetStream IPv4 flows.

The ipv6 netstream export host command configures a destination IPv6 address and a UDP port number for the output NetStream IPv6 flows.

The undo ipv6 netstream export host command deletes a destination IPv6 address and a UDP port number configured for the output NetStream IPv6 flows.

By default, no destination IP address or UDP port number is configured.

Format

ip netstream export host { ip-address | ipv6 ipv6-address } port [ dscp dscp-value ]

ip netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ dscp dscp-value ]

ipv6 netstream export host { ip-address | ipv6 ipv6-address } port [ dscp dscp-value ]

ipv6 netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ dscp dscp-value ]

undo ip netstream export host { ip-address | ipv6 ipv6-address } port [ dscp dscp-value ]

undo ip netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ dscp dscp-value ]

undo ipv6 netstream export host { ip-address | ipv6 ipv6-address } port [ dscp dscp-value ]

undo ipv6 netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ dscp dscp-value ]

Parameters

Parameter Description Value
ip-address

Specifies the NSC IPv4 address to which NetStream flows are output.

  • The value is in dotted decimal notation.
ipv6

Displays the IPv6 netstream feature.

-

ipv6-address

Specifies the NSC IPv6 address to which NetStream flows are output.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

port

Specifies the NSC UDP port number to which NetStream flows are output.

The value is an integer ranging from 1 to 65535.

dscp dscp-value

Specifies a differentiated services code point (DSCP) value for output NetStream packets.

The value is an integer ranging from 1 to 63.

ip

Displays the IPv4 netstream feature.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

Views

IPv6 NetStream aggregation view, NetStream aggregation view, Slot view, System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
netstream write

Usage Guidelines

Usage Scenario

An NDE samples data traffic and sends the sampled data to an NSC for processing. To specify the NSC IP address to which the NDE outputs sampled data, run this command.

Configuration Impact

The destination IP address configured in the NetStream aggregation view is for aggregated NetStream flows. The destination IP configured in the slot view is for original NetStream flows. The destination IP address configured in the system view is for both original and aggregated NetStream flows.

For aggregated flows, the destination IP address configured in the NetStream aggregation view takes precedence over that configured in the system view. If no destination IP address is configured in the NetStream aggregation view, the destination IP address configured in the system view is used.

For original flows, the destination IP address configured in the slot view takes precedence over that configured in the system view. If no destination IP address is configured in the slot view, the destination IP address configured in the system view is used.

Precautions

  • In the system view or slot view, if IPv4 and IPv6 addresses are not distinguished, each of the ip netstream export host and ipv6 netstream export host commands supports the configuration of eight output addresses. In the IPv4 NetStream aggregation view, the ip netstream export host command supports the configuration of eight output addresses. In the IPv6 NetStream aggregation view, the ipv6 netstream export host command supports the configuration of eight output addresses.
  • In real-world applications, the destination IP address of NetStream traffic statistics can be set to either a public or private address, but the source IP address can be set only to a public address.
  • VSn has no slot view. Therefore, the output address configured in the slot view of the admin-VS takes effect in VSn.

    When running the command in the slot view, you must run this command on the NetStream service processing board. The destination IP address configured on other boards does not take effect.

    The output of NetStream packets to the NSC is through the service interface not through the management interface.

Example

# In the view of slot 1, configure the destination IP address for IPv6 NetStream flows to 10.0.0.1 and the port number to 1000.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] ipv6 netstream export host 10.0.0.1 1000
# In the view of slot 1, configure the destination IP address for IPv4 NetStream flows to 10.0.0.1 and the port number to 1000.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] ip netstream export host 10.0.0.1 1000
# In the NetStream aggregation view, set the destination IP address for IPv6 NetStream flows to 10.1.1.2 and the port number to 3001.
<HUAWEI> system-view
[~HUAWEI] ipv6 netstream aggregation as
[*HUAWEI-aggregation-as] ipv6 netstream export host 10.1.1.2 3001
# In the NetStream aggregation view, set the destination IP address for IPv4 NetStream flows to 10.1.1.2 and the port number to 3001.
<HUAWEI> system-view
[~HUAWEI] ip netstream aggregation as
[*HUAWEI-aggregation-as] ip netstream export host 10.1.1.2 3001
# In the system view, set the destination IP address for IPv6 NetStream flows to 10.1.1.1 and the port number to 3000.
<HUAWEI> system-view
[~HUAWEI] ipv6 netstream export host 10.1.1.1 3000
# In the system view, set the destination IP address for IPv4 NetStream flows to 10.1.1.1 and the port number to 3000.
<HUAWEI> system-view
[~HUAWEI] ip netstream export host 10.1.1.1 3000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >