2044
C
110: N
HAPTER
ET
NetStream
Configuration
Example
Configuring NetStream
S
C
TREAM
ONFIGURATION
To do...
Clear status information about the NetStream cache and
statistics about exported NetStream packets
Network requirements
Configure Netstream on Router A to collect statistics in the inbound direction of
interface Ethernet 1/0 and in the outbound direction of interface Ethernet 1/1 and
sends the result to port 5000 on NSC 12.110.2.2/16.
Network diagram
Figure 608 Network diagram for NetStream statistics
Router A
Eth1/0
11.110 .2.1/16
Network
Configuration procedure
# Configure interface Ethernet 1/0 and enable NetStream statistics in its inbound
direction.
<RouterA> system-view
[RouterA] interface ethernet 1/0
[RouterA-Ethernet1/0] ip address 11.110.2.1 255.255.0.0
[RouterA-Ethernet1/0] ip netstream inbound
[RouterA-Ethernet1/0] quit
# Configure interface Ethernet 1/1 and enable NetStream statistics in its outbound
direction.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 12.110.2.1 255.255.0.0
[RouterA-Ethernet1/1] ip netstream outbound
[RouterA-Ethernet1/1] quit
# Configure the destination address and port number (that is, the address and
port number of NSC) for UDP packets, leaving the default for source address.
[RouterA] ip netstream export host 12.110.2.2 5000
Eth1/1
12.110.2.1/16
NSC
12.110 .2.2/16
Use the command...
reset ip netstream statistics