如何在 Dell Networking N 系列交换机上配置 sFlow

Summary: 如何在运行 OS6 的 Dell Networking N 系列交换机上配置 Sflow。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

本文介绍如何在运行 OS6 的 Dell Networking N 系列交换机上配置和验证 sFlow。

索引

概览

sFlow 技术:sFlow 是用于监控高速交换和路由网络的行业标准技术。Dell Networking N 系列交换机软件具有集成的 sFlow 代理程序,可监控每个端口上的网络流量,并将 sFlow 数据生成到 sFlow 接收器(也称为收集器)。

N 系列交换机中的 sFlow 默认值:
 

参数

默认值

接收器端口

6343

接收器最大数据报大小

1400 字节

最大标头大小

128 字节


配置


要在交换机上配置 sFlow,请输入以下命令:
 

console> enable

进入特权模式。

console# configure

进入配置模式。

console(config)# sflow destination

配置 sFlow 接收器的地址和(可选)sFlow 数据报的目标 UDP 端口。

console(config)# sflow destination owner timeout

指定接收器的标识字符串并设置接收器超时值。

timeout - 在自动清除配置之前配置有效的秒数。值 0 表示未配置接收器。

console(config)# sflow polling

在接口范围内启用新的 sFlow 轮询器实例。

console(config)# sflow sampling

为指定的接口范围
启用新的 sFlow 采样器实例。
 

 

示例配置

以下是一个示例,提供了交换机上 sFlow 的示例配置,在 10 Gb 端口 1 至 4 的接口范围内进行轮询和采样。

此示例使用以下输入值。

sFlow 接收器的 IP 地址 -- 192.168.2.1
所有者字符串 -- SFLOW_EXAMPLE
接收器索引 -- 1
轮询间隔 -- 30(轮询间隔:sFlow 实例轮询间隔。值 n 表示每 n 秒生成一次计数器样本。(范围:0-86400))
采样率 -- 1204 (采样率 - 从此源进行数据包采样的统计采样率。采样率 1 表示对所有数据包进行计数。值 n 表示在 n 个传入数据包中,对 1 个数据包进行采样 (Range:1024 - 65536))。

console> enable
console# configure
console(config)# sflow 1 destination 192.168.2.1
console(config)# sflow 1 destination owner SFLOW_EXAMPLE timeout 10000
console(config)# sflow 1 polling gi1/0/1-4 30
console(config)# sflow 1 sampling gi1/0/1-4 1024


验证配置

要验证配置,请使用以下命令:

console# show sflow 1 destination

Receiver Index.................... 1
Owner String...................... SFLOW_EXAMPLE
Time out.......................... 10000
IP Address:....................... 192.168.2.1
Address Type...................... 1
Port.............................. 6343
Datagram Version.................. 5
Maximum Datagram Size............. 1400

console# show sflow 1 polling
Poller Receiver Poller
Data Source Index Interval
----------- ------- -------
Te1/0/1     1     30
Te1/0/2     1     30
Te1/0/3     1     30
Te1/0/4     1     30


console# show sflow 1 sampling
Sampler Receiver Packet Max Header
Data Source Index Sampling Rate Size
----------- ------- ------------- ----------
Te1/0/1            1      1024        128
Te1/0/2            1      1024        128
Te1/0/3            1      1024        128
Te1/0/4            1      1024        128

 

Affected Products

N Series, PowerSwitch N1100-ON Series, PowerSwitch N1500 Series, PowerSwitch N2000 Series, PowerSwitch N2100 Series, PowerSwitch N2200-ON Series, PowerSwitch N3000 Series, Dell EMC PowerSwitch N3000E-ON Series, Dell EMC PowerSwitch N3100 Series , PowerSwitch N4000 Series ...
Article Properties
Article Number: 000116368
Article Type: How To
Last Modified: 24 Mar 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.