![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 489](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487489.webp)
# Configure dynamic BGP routes between Switch B and Switch D.
[SwitchB]
bgp 65001
[SwitchB-bgp]
router-id 2.2.2.2
[SwitchB-bgp]
peer 10.3.1.2 as-number 65003
[SwitchB-bgp]
quit
[SwitchD]
bgp 65003
[SwitchD-bgp]
router-id 4.4.4.4
[SwitchD-bgp]
peer 10.3.1.1 as-number 65001
Step 4
Configure the NetStream function on Switch B.
# Configure Switch B to export the statistics about the aggregation traffic and set the version of
the exported packets.
[SwitchB]
ip netstream aggregation as
[SwitchB-aggregation-as]
export version 9
[SwitchB-aggregation-as]
ip netstream export host 10.4.1.2 6000
[SwitchB-aggregation-as]
ip netstream export source 10.4.1.1
[SwitchB-aggregation-as]
enable
[SwitchB-aggregation-as]
quit
# Enable traffic statistics for inbound and outbound traffic and set the sampling ratio.
[SwitchB]
interface gigabitethernet 1/0/0
[SwitchB-GigabitEthernet1/0/0]
ip netstream inbound
[SwitchB-GigabitEthernet1/0/0]
ip netstream outbound
[SwitchB-GigabitEthernet1/0/0]
ip netstream sampler fix-packets 100 inbound
[SwitchB-GigabitEthernet1/0/0]
ip netstream sampler fix-packets 100 outbound
[SwitchB-GigabitEthernet1/0/0]
quit
[SwitchB]
quit
Step 5
Verify the configuration.
# After successful configurations, run the
display netstream all
command in the user view of
Switch B to check the configurations.
<SwitchB>
display netstream all
ip netstream aggregation as
ip netstream export source 10.4.1.1
ip netstream export host 10.4.1.2 6000
enable
export version 9
slot 0
GigabitEthernet1/0/0
ip netstream inbound
ip netstream outbound
ip netstream sampler fix-packets 100 inbound
ip netstream sampler fix-packets 100 outbound
# View the traffic statistics on the board in slot 1.
<SwitchB>
display ip netstream statistic slot 1
=====Netstream statistics:=====
Origin ingress entries : 572
Origin ingress packets : 56122
Origin ingress octets : 6762976
Origin egress entries : 57
Origin egress packets : 3588
Origin egress octets : 394680
Origin total entries : 629
Handle origin entries : 620
Handle As aggre entries : 12
Handle ProtPort aggre entries : 11
Handle SrcPrefix aggre entries : 10
Handle DstPrefix aggre entries : 15
Handle Prefix aggre entries : 7
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
7 NetStream Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7-27