238
Figure 73
Network diagram
Configuration procedure
# Assign an IP address to GigabitEthernet 2/0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ipv6 address 10::1/64
# Enable IPv6 NetStream for incoming and outgoing traffic on GigabitEthernet 2/0/1.
[RouterA-GigabitEthernet2/0/1] ipv6 netstream inbound
[RouterA-GigabitEthernet2/0/1] ipv6 netstream outbound
[RouterA-GigabitEthernet2/0/1] quit
# Specify the export destination host as 40::1 with UDP port 5000.
[RouterA] ipv6 netstream export host 40::1 5000
# Configure the aggregation mode as AS, and specify the destination host for the aggregation data
export.
[RouterA] ipv6 netstream aggregation as
[RouterA-ns6-aggregation-as] enable
[RouterA-ns6-aggregation-as] ipv6 netstream export host 40::1 2000
[RouterA-ns6-aggregation-as] quit
# Configure the aggregation mode as protocol-port, and specify the destination host for the aggregation
data export.
[RouterA] ipv6 netstream aggregation protocol-port
[RouterA-ns6-aggregation-protport] enable
[RouterA-ns6-aggregation-protport] ipv6 netstream export host 40::1 3000
[RouterA-ns6-aggregation-protport] quit
# Configure the aggregation mode as source-prefix, and specify the export destination host for the
aggregation data export.
[RouterA] ipv6 netstream aggregation source-prefix
[RouterA-ns6-aggregation-srcpre] enable
[RouterA-ns6-aggregation-srcpre] ipv6 netstream export host 40::1 4000
[RouterA-ns6-aggregation-srcpre] quit
# Configure the aggregation mode as destination-prefix, and specify the destination host for the
aggregation data export.
[RouterA] ipv6 netstream aggregation destination-prefix
[RouterA-ns6-aggregation-dstpre] enable