Table des matières

Configuring SNMP on D-Link switches

Introduction

In order to supervise this type of equipment, you need to provide Esia with a community that has read-only SNMP V1/V2c access. We therefore need to start by configuring SNMP on this equipment.

To do this, you first need to enter the IP address of the switch in the URL of your browser. Then authenticate yourself.

It is then possible and necessary to activate SNMP. By default, it offers SNMP access in V1/V2c for the 'public' (read-only access) and 'private' (read and write) communities. public' (read-only access) and 'private' (read and write) communities. As a reminder, only read-only access is required for Esia. Depending on the range of the switch, the views used in the default community may be more or less restrictive.

Depending on the range, switch configuration differs little, but the following elements may differ:

Don't forget to save your configuration once it's working properly.

This tutorial has been tested with the following switches:

DGS-12XX series

Go to « SNMPSNMP ».

The configuration pages of interest are :

The last 2 pages (User and Group) are present on all switches. They are dedicated to SNMPv3 configuration, which is not required for Esia, but these pages are necessary for SNMPv2 in some switches (DGS-1210 for example) in order to link an SNMPv2 community to a particular view.

DGS-1210 - SNMP menu

Enable SNMP on the switch

Tick the 'Enabled' box and then the 'Apply' button. Your Esia can now access the switch via SNMP via the 'public' community.

Your switch can now be monitored by Esia. The rest of this tutorial is useful if your switch is not configured by default or if you wish to make more detailed settings. In particular, it is advisable to change the name of the community (see below).

Configuring a view

You can configure different views in your switch by adding rules. You need at least one rule to create a view and access defined OIDs. The rule parameters are :

As you can see from the screenshots below, a view called ReadWrite is already configured with all the OIDs.

DGS-1210 - Managing views

Configuring an SNMP community

The parameters are :

DGS-1210 - Community configuration

Setting up an SNMP group

Allows you to create user groups and link them to views corresponding to a particular SNMP action. The parameters of a group are :

You can leave the default D-Link settings.

DGS-1210 - Group Configuration

Configuring an SNMP user

To create SNMP users, it is then possible to assign a community to these user(s). The parameters are :

DGS-1210 - User Configuration

The 'ReadOnly' user shown above is sufficient in Esia.

DGS-15XX, DGS-31XX, DGS-36XX, DXS-34XX, DXS-36XX series

The firmware of the following switches is identical, so the tutorial is compatible: DGS-1250/1510/1520/3630/DXS-3400/DXS-3610

The configuration pages of interest are :

DGS-3130 - SNMP Menu

Enable SNMP on the switch

Tick the 'Enabled' box and then the 'Apply' button. Your Esia can now access the switch via SNMP via the 'public' community.

Your switch can now be monitored by Esia. The rest of this tutorial is useful if your switch is not configured by default or if you wish to make more detailed settings. In particular, it is advisable to change the name of the community (see below).

Configuring a view

You can configure different views in your switch by adding rules. You need at least one rule to create a view and access defined OIDs. The rule parameters are :

As you can see from the screenshots below, by default, 2 views are offered 'restricted' and 'CommunityView'. These 2 views are both restricted in OIDs.

DGS-3130 - Managing views

You can use the default view 'CommunityView'. This is restrictive with regard to OID 1.3.6.1.6.3 (snmpModules) but these OIDs are not used in Esia (and therefore not necessary).

If you still want to be able to access all the OIDs on these switches, you can either :

Configure an SNMP community

The parameters are :

DGS-3130 - Community configuration

You enter the view to be used directly in View Name. You do not have to go through a user and a user group as is the case for other D-LINK switches.

The 'public' community uses the 'CommunityView' view by default. By default, this view is restricted for oid 1.3.6.1.6.3 (snmpModules) which is not used by Esia. You can therefore use this community, but it is preferable to create a new community using this view.