beautypg.com

Configuration procedure, Network requirements – H3C Technologies H3C SR8800 User Manual

Page 160

background image

148

Configuration procedure

# Configure a QoS policy to mirror traffic entering GigabitEthernet 6/1/7 to NetStream interface

2/0/1.

[RouterA] acl number 2005

[RouterA-acl-basic-2005] rule 1 permit source any

[RouterA-acl-basic-2005] quit

[RouterA] traffic classifier ns_ipv4

[RouterA-classifier-ns_ipv4] if-match acl 2005

[RouterA-classifier-ns_ipv4] quit

[RouterA] traffic behavior ns_ipv4

[RouterA-behavior-ns_ipv4] mirror-to interface Net-Stream 2/0/1

[RouterA-behavior-ns_ipv4] quit

[RouterA] qos policy ns_ipv4

[RouterA-qospolicy-ns_ipv4] classifier ns_ipv4 behavior ns_ipv4

[RouterA-qospolicy-ns_ipv4] quit

# Apply the QoS policy to the inbound direction of GigabitEthernet 6/1/7.

[RouterA] interface GigabitEthernet6/1/7

[RouterA-GigabitEthernet6/1/7] qos apply policy ns_ipv4 inbound

[RouterA-GigabitEthernet6/1/7] quit

# Enable NetStream on Router A. Specify to export NetStream data to IP address 12.110.2.2 and port
5000 (the NetStream server), leaving the default for source address.

[RouterA] ip netstream

[RouterA] ip netstream export host 12.110.2.2 5000

NetStream aggregation data export configuration example

Network requirements

As shown in

Figure 54

, configure NetStream on Router A so that:

Router A exports NetStream traditional data in version 5 format to port 5000 of the NetStream
server at 4.1.1.1/16.

Router A performs NetStream aggregation in the modes of AS, protocol-port, source-prefix,
destination-prefix and prefix. Use version 8 export format to send the aggregation data of different

modes to the destination address at 4.1.1.1, with UDP port 2000, 3000, 4000, 6000, and 7000
respectively.

NOTE:

All the routers in the network are running EBGP. For more information about BGP, see

Layer 3—IP Routing

Configuration Guide.