272
IPv6 NetStream configuration examples
IPv6 NetStream traditional data export configuration example
Network requirements
, configure NetStream on Switch A to collect statistics on packets passing
through Switch A.
•
Enable NetStream for incoming and outgoing traffic on GigabitEthernet 1/0/1.
•
Configure the switch to export NetStream traditional data to UDP port 5000 of the IPv6
NetStream server.
Figure 78 Network diagram
Configuration procedure
# Assign an IPv6 address to each interface, as shown in
. (Details not shown.)
# Configure GigabitEthernet 1/0/1 to operate in Layer 3 mode.
<SwitchA> system-view
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-mode route
# Enable IPv6 NetStream for incoming and outgoing traffic on GigabitEthernet 1/0/1.
[SwitchA-GigabitEthernet1/0/1] ipv6 netstream inbound
[SwitchA-GigabitEthernet1/0/1] ipv6 netstream outbound
[SwitchA-GigabitEthernet1/0/1] quit
# Specify 40::1 as the IPv6 address of the destination host and UDP port 5000 as the export
destination port number.
[SwitchA] ipv6 netstream export host 40::1 5000
Verifying the configuration
# Display IPv6 NetStream entry information in the cache.
<Sysname> display ipv6 netstream cache slot 1 verbose
IPv6 NetStream cache information:
Active flow timeout : 5 min
Inactive flow timeout : 300 sec
Max number of entries : 8192
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 : Never
IPv6 packet size distribution (0 packets in total):
IPv6 NetStream server
Switch A
GE1/0/1
10::1/64
GE1/0/2
40::2/64
40::1/64
Network