[SwitchA] interface gigabitethernet 2/0/6
[SwitchA-GigabitEthernet1/0/6] ip netstream sampler fix-packets 5000 inbound
[SwitchA-GigabitEthernet1/0/6] ip netstream sampler fix-packets 5000 outbound
[SwitchA-GigabitEthernet1/0/6] quit
[SwitchA] interface gigabitethernet 2/0/7
[SwitchA-GigabitEthernet1/0/7] ip netstream sampler fix-packets 5000 inbound
[SwitchA-GigabitEthernet1/0/7] ip netstream sampler fix-packets 5000 outbound
[SwitchA-GigabitEthernet1/0/7] quit
2.配置不活跃流的老化时间为100秒,以及开启由TCP连接的FIN和RST报文触发老化
[SwitchA] ip netstream timeout inactive 200
[SwitchA] ip netstream tcp-flag enable
3.配置NetStream聚合流统计信息输出报文源地址为 106.3.32.30,目的地址为218.206.249.138,国内服务器租用 服务器托管,目的端口号为50040
[SwitchA] ip netstream aggregation protocol-port
[SwitchA] ip netstream export source 106.3.32.30
[SwitchA] ip netstream export host 218.206.249.138 50040
[SwitchA] enable
4.配置输出报文版本为V9。
[SwitchA] ip netstream export version 9
5.使能GE2/0/6、2/0/7出、入接口的NetStream统计功能
[SwitchA] interface gigabitethernet 2/0/6
[SwitchA-GigabitEthernet2/0/6] ip netstream inbound
[SwitchA-GigabitEthernet2/0/6] ip netstream outbound
[SwitchA-GigabitEthernet2/0/6] quit
[SwitchA] interface gigabitethernet 2/0/7
[SwitchA-GigabitEthernet2/0/7] ip netstream inbound
[SwitchA-GigabitEthernet2/0/7] ip netstream outbound
[SwitchA-GigabitEthernet2/0/7] quit
配置举例: