236
IPv6 NetStream configuration examples
IPv6 NetStream traditional data export configuration example
Network requirements
As shown in
, configure IPv6 NetStream on Router A to collect statistics on packets passing
through Router A.
•
Enable IPv6 NetStream for incoming and outgoing traffic on GigabitEthernet 2/0/1.
•
Configure Router A to export the IPv6 NetStream traditional data to UDP port 5000 of the
NetStream server.
Figure 72
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/64 with UDP port 5000.
[RouterA] ipv6 netstream export host 40::1/64 5000
Verifying the configuration
# Display IPv6 NetStream entry information in the cache.
<Sysname> display ipv6 netstream cache verbose slot 1
IPv6 NetStream cache information:
Active flow timeout : 60 min
Inactive flow timeout : 10 sec
Max number of entries : 1000
IPv6 active flow entries : 2
MPLS active flow entries : 0
IPL2 active flow entries : 0
IPv6 flow entries counted : 10
MPLS flow entries counted : 0
IPL2 flow entries counted : 0
Last statistics resetting time : 01/01/2000 at 00:01:02
IPv6 packet size distribution (1103746 packets in total):