beautypg.com

Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 163

background image

151

Configure Router A to perform 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.

Figure 55 Network diagram

Configuration procedure

# Configure network management interface M-Ethernet 6/0/0.

system-view

[RouterA] interface M-Ethernet6/0/0

[RouterA-M-Ethernet6/0/0] ip address 4.1.1.2 255.255.0.0

[RouterA-M-Ethernet6/0/0] quit

# Create a sampler named ns1 in fixed sampling mode. Set the sampling rate to 4, which means in each

sampling, one packet out of 16 packets (2 to the power of 4) is sampled.

[RouterA]sampler ns1 mode fixed packet-interval 4

# Enable NetStream sampling in the outbound direction of GigabitEthernet 3/0/2 and mirror the
sampled packets to the NetStream interface.

[RouterA] interface GigabitEthernet 3/0/2

[RouterA-GigabitEthernet3/0/2] ip netstream sampler ns1 outbound

[RouterA-GigabitEthernet3/0/2] ip netstream mirror-to interface Net-Stream 3/0/1 outbound

[RouterA-GigabitEthernet3/0/2] quit

# Enable NetStream on Router A.

[RouterA] ip netstream

# Configure to export NetStream data in version 5 format and specify the data to include the source AS
and destination AS.

[RouterA] ip netstream export version 5 origin-as

# In system view, configure the destination address for the NetStream traditional data export with the IP

address 4.1.1.1 and port 5000.

[RouterA] ip netstream export host 4.1.1.1 5000

[RouterA] ip netstream export source interface M-Ethernet6/0/0