H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – NAT, Netstream, Policy Routing
H3C S7500 Series Ethernet Switches Chapter 2
Netstream Configuration
2-9
<H3C>system-view
[H3C] ip netstream inbound source 3 to 5
# Enable Netstream on the LPU in slot 5 to collect statistics about the inbound packets
with source IP address 192.168.0.5 on the interface board in slot 2.
[H3C] acl number 2003
[H3C-acl-basic-2003] rule permit source 192.168.0.5 0
[H3C] ip netstream inbound source 2 to 5 acl 2003
# Configure the source IP address of UDP packets.
[H3C] vlan 20
[H3C-vlan20] port GigabitEthernet2/0/5
[H3C-vlan20] quit
[H3C] interface vlan-interface 20
[H3C-vlan-interface20] ip address 12.110.2.1 24
[H3C-vlan-interface20] quit
[H3C] ip netstream export source 12.110.2.1
# Configure the destination IP address and port number of UDP packets.
[H3C] ip netstream export host 12.110.2.2 9991
# Display the running status of Netstream.
[H3C] display ip netstream cache slot 5
IP netstream cache information in slot 5
Stream active timeout(minute) : 30
Stream inactive timeout(second): 60
Active stream entry : 1
Stream entry been counted : 100
Last statistics reset time : 8/10/2004, 15:42:12
Protocol Total Packets Stream Packets
Streams /Sec /Sec /stream
UDP-other 93 713510 0 43984487
UDP-NetBios 7 0 0 1
Total 100 713510 0 40905573
# Display information about Netstream export packets on the LPU.
[H3C] display ip netstream export slot 5
IP netstream export information in slot 5
IP netstream is enabled in slot : 2
IP netstream is enabled in slot : 3
Version 5 export information
Stream source address : 12.110.2.1
Stream destination IP(UDP) : 12.110.2.2 (9991)