欢迎user
59-Sampler典型配置举例
本章节下载: 59-Sampler典型配置举例 (125.85 KB)
目 录
本章介绍了Sampler典型配置举例。
表1 适用产品和版本
产品 |
软件版本 |
S10500系列以太网交换机 |
Release 1120系列,Release 1130系列,Release 1200系列 |
S5800&S5820X系列以太网交换机 |
Release 1808 |
S5830系列以太网交换机 |
Release 1115,Release 1118 |
如图1所示,某网络被划分为三个区域,Area A作为数据中心区,Area B和Area C作为用户区。当前已在Edge Switch上部署NetStream,对数据中心区的流量进行实时监控。现要求配置Sampler,以实现在减少统计报文数量的前提下,使NetStream收集到的统计信息能基本反映整个网络的状况,并避免网络中的大流量对设备转发性能造成影响。
图1 Sampler典型配置组网图
设备仅支持固定采样模式。
# 创建一个名为sam256的采样器,采用固定采样方式,设置统计报文的间隔为8,即256(2的8次方)个报文中采样1个报文。
<EdgeSwitch> system-view
[EdgeSwitch] sampler sam256 mode fixed packet-interval 8
# 在入方向启用NetStream统计功能,并使用采样器sam256。
[EdgeSwitch] interface GigabitEthernet 1/0/1
[EdgeSwitch-GigabitEthernet1/0/1] ip netstream inbound
[EdgeSwitch-GigabitEthernet1/0/1] ip netstream sampler sam256 inbound
[EdgeSwitch-GigabitEthernet1/0/1] quit
# 配置普通流统计信息输出的目的地址。
[EdgeSwitch] ip netstream export host 202.106.24.8 5000
在完成上述配置后,在任意视图下执行display命令可以显示配置后Sampler的运行情况,通过查看显示信息验证配置的效果。
[EdgeSwitch] display sampler
Sampler name: sam256
Index: 1, Mode: Fixed, Packet-interval: 8
当端口GigabitEthernet1/0/1的入流量达到256个报文时,设备会对入方向的报文进行一次固定采样。
#
sampler sam256 mode fixed packet-interval 8
#
interface GigabitEthernet1/0/1
port link-mode bridge
ip netstream inbound
ip netstream sampler sam256 inbound
#
ip netstream export host 202.106.24.8 5000
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!