Using the sampler for ipv4 netstream, Network requirements – H3C Technologies H3C SecBlade NetStream Cards User Manual
Page 180
165
# Create a blackhole-type inline forwarding entry 1.
[SecBlade] inline-interfaces 1 blackhole
# Assign Ten-GigabitEthernet 0/0 to the blackhole-type inline forwarding entry 1 for discarding the
packets when they are received and processed.
[SecBlade] interface ten-gigabitethernet0/0
[SecBlade-Ten-GigabitEthernet0/0] port inline-interfaces 1
# Enable NetStream for incoming traffic on Ten-GigabitEthernet 0/0.
[SecBlade-Ten-GigabitEthernet0/0] ip netstream inbound
# Enable ACSEI client on Ten-GigabitEthernet 0/0 to synchronize the Device's clock.
[SecBlade-Ten-GigabitEthernet0/0] acsei-client enable
[SecBlade-Ten-GigabitEthernet0/0] quit
# Assign an IP address to interface GigabitEthernet 0/1.
[SecBlade] interface gigabitethernet 0/1
[SecBlade-GigabitEthernet0/1] ip address 4.1.1.2 255.255.255.0
[SecBlade-GigabitEthernet0/1] quit
# In system view, configure the destination address for the NetStream traditional data export with the IP
address 4.1.1.1 and port 5000.
[SecBlade] ip netstream export host 4.1.1.1 5000
# Configure the aggregation mode as protocol-port, and in aggregation view configure the destination
address for the NetStream protocol-port aggregation data export.
[SecBlade] ip netstream aggregation protocol-port
[SecBlade-ns-aggregation-protport] enable
[SecBlade-ns-aggregation-protport] ip netstream export host 4.1.1.1 3000
[SecBlade-ns-aggregation-protport] quit
Using the sampler for IPv4 NetStream
Network requirements
As shown in
, configure IPv4 NetStream on the SecBlade to collect statistics on incoming traffic
on Ten-GigabitEthernet 0/0. The NetStream data is sent to port 5000 on the NSC at 12.110.2.2/24.
Configure fixed sampling in the inbound direction to select the first packet out of 256 packets.
Figure 51 Network diagram for configuring sampler for IPv4 NetStream