Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products

如何在 Dell Networking N 系列交換器上設定 sFlow

Summary: 如何在執行 OS6 的 Dell Networking N 系列交換器上設定 Sflow

This article applies to   This article does not apply to 

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

指定接收器的身分識別字串並設定
接收器逾時值。

逾時 - 組態在經自動清除之前有效的秒數。值為 0 基本上表示接收器未設定。

console(config)# sflow polling

在介面範圍內啟用新的 sFlow 輪詢器例項。

console(config)# sflow sampling

為指定的
介面範圍啟用新的 sFlow 採樣器例項。
 

 

範例組態

以下範例提供交換器上的 sFlow 範例組態,並在 10 gig 連接埠 1 至 4 的介面上進行輪詢和採樣。

此範例使用以下輸入值。

sFlow 接收器的 IP 位址 -- 192.168.2.1
擁有者字串 -- SFLOW_EXAMPLE
接收器索引 -- 1
輪詢間隔 -- 30 (輪詢間隔:sFlow 例項輪詢間隔。值為 n 表示每 n 秒產生一次計數器樣本。(範圍:0-86400))
採樣速率 -- 1204 (採樣速率 - 此來源之封包取樣的統計採樣速率。採樣速率為 1 表示會對所有封包進行計數。值為 n 表示在 n 個傳入封包中,將對 1 個封包進行採樣。(範圍: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

PowerSwitch N2000 Series, PowerSwitch N3000 Series