Dell Networking N 系列 - 如何設定 SNMPv3

Summary: 如何在 Dell Networking N 系列交換器上設定 SNMPv3。

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.

Symptoms

 設定 SNMPv3 的步驟

  1. 建立 SNMpv3 檢視。

  2. 建立 SNMPv3 群組並與檢視建立關聯。

  3. 建立 SNMPv3 使用者並與群組關聯


1.建立 SNMPv3 檢視

  • SNMPv3 檢視定義了我們可以在交換器上看到的內容

  • 檢視定義了我們可以從 MIB 子樹訪問哪個 MIB 系列。

  • 例如,如果我們從MIB子樹中選擇視圖作為“系統”,使用者可以輪詢“系統”對象標識碼(OID)下的所有資訊。

  • 同樣,如果我們需要查看所有參數,我們可以從MIB子樹中將視圖配置為“iso”。


命令

console# configure
console(config)# snmp-server view test_view internet included

 

CLI 細項
 

參數 說明
test_view 我們在交換器上為 SNMP 檢視在本機建立的名稱
網際網路

我們從 OID 子樹中選擇的 MIB 系列。

 

2.建立 SNMPV3 群組

  • 創建 SNMPv3 檢視後的下一步是創建 SNMPv3 組並將其與已創建的檢視關聯。

命令:

console(config)# snmp-server group test_group v3 ‘noauth/auth/priv’ ‘read/write’ test_view

 

CLI 細項
 

參數 說明
test_group 我們在交換器上為 SNMP 群組本機建立的名稱
諾身份驗證/身份驗證/私有 認證類型
test_view 將 SNMPV3 群組與之前建立的 SNMPV3 檢視建立關聯。

auth - 指定對數據包進行身份驗證而不對其進行加密。

noauth - 不指定對數據包的身份驗證。

priv - 指定對具有加密功能的數據包進行身份驗證。


3.建立 SNMPV3 使用者

建立 SNMPv3 群組後的下一步是建立 SNMPv3 使用者,並將其與已建立的群組建立關聯。


命令

console(config)# snmp-server user test_user test_group auth-md5 password1 priv-3des password2

 

CLI 細項
 

參數 說明
test_user 我們在交換器上為 SNMP 使用者本機建立的名稱
test_group 將 SNMPV3 使用者與之前建立的 SNMPV3 群組建立關聯。
身份驗證 驗證密碼
普里夫 加密金鑰

 

組態範例


SLN320821_en_US__1image(14832)
 

console# configure
console(config) snmp-server view test_view internet included
console(config) snmp-server group test_group v3 priv read test_view
console(config) snmp-server user test_user test_group auth-md5 password1 priv-3des password2

 

交換器執行組態輸出

console# show running-config
...
snmp-server view "test_view" internet included
snmp-server group "test_group" v3 priv read "test_view"
snmp-server user "test_user" test_group auth-md5-key 240826d65a17fe9d8826630917f60b0f priv-3des-key 240826d65a17fe9d8826630917f60b0f400dd0592395032de9b2ad0759c017e9
...

 

Cause

Resolution

Affected Products

N Series, PowerSwitch, PowerSwitch N1500 Series, PowerSwitch N2000 Series, Dell EMC PowerSwitch N3000E-ON Series, PowerSwitch N4000 Series
Article Properties
Article Number: 000133707
Article Type: Solution
Last Modified: 02 Apr 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.