R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

145
Router A performs NetStream aggregation in the modes of AS, protocol-port, source-prefix,
destination-prefix, and prefix. Use version 8 export format to send the aggregation data of different
modes to the destination address at 4.1.1.1, with UDP ports 2000, 3000, 4000, 6000, and 7000,
respectively.
All routers in the network are running EBGP. For more information about BGP, see Layer 3IP Routing
Configuration Guide.
Figure 53 Network diagram
Configuration procedure
# Enable NetStream for incoming and outgoing traffic on GigabitEthernet 2/0/0.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0] ip address 3.1.1.1 255.255.0.0
[RouterA-GigabitEthernet2/0/0] ip netstream inbound
[RouterA-GigabitEthernet2/0/0] ip netstream outbound
[RouterA-GigabitEthernet2/0/0] quit
# In system view, configure the destination address and the destination UDP port number for the
NetStream traditional data export with IP address 4.1.1.1 and port 5000.
[RouterA] ip netstream export host 4.1.1.1 5000
# Configure the aggregation mode as AS, and then in aggregation view, configure the destination
address and the destination UDP port number for the NetStream AS aggregation data export.
[RouterA] ip netstream aggregation as
[RouterA-ns-aggregation-as] enable
[RouterA-ns-aggregation-as] ip netstream export host 4.1.1.1 2000
[RouterA-ns-aggregation-as] quit
# Configure the aggregation mode as protocol-port, and then in aggregation view, configure the
destination address and the destination UDP port number for the NetStream protocol-port aggregation
data export.
[RouterA] ip netstream aggregation protocol-port
[RouterA-ns-aggregation-protport] enable
[RouterA-ns-aggregation-protport] ip netstream export host 4.1.1.1 3000
[RouterA-ns-aggregation-protport] quit
# Configure the aggregation mode as source-prefix, and then in aggregation view, configure the
destination address and the destination UDP port number for the NetStream source-prefix aggregation
data export.