Configuring Port 161 for SNMP in Windows Server 2019

Zuber Kariye
4 min readFeb 6, 2022

Hello, folks! I hope everyone is doing well.

Intro

Today’s blog will be about setting up a network protocol called SNMP, which stands for Simple Network Management Protocol. This is a network protocol that is used for managing devices on a TCP/IP network. Devices that support this protocol include servers, workstations, routers, switches, printers, and much more. SNMP is often used in network management systems to monitor network-attached devices for conditions that call for administrative attention. For example, the administrator can be alerted if the router fails or be alerted when disk space on a server is running out.

SNMP-managed devices also called “agents,” listen on UDP port 161 for SNMP requests, which are forwarded to an SNMP management station that runs proprietary software for interpreting the data received from agents.

I will be using two different devices to demonstrate this, Windows 10 (client) and Windows Server 2019 which I will be installing the protocol.

Task 1- Install SNMP agent

In this talk, we will configure SNMP on a Server 2019 device. Follow this tutorial to perform this.

Open Windows server manager and click Manage.

Then click Add Roles and Features. Before you begin, click Next > then Next > until you get to the Server Roles.

Server Roles, then click Next. On the Features, page, scroll down and click SNMP Service and click Add Features. Click Next, then click Install.

Once the installation has been completed, click Close.

Task 2- Configure SNMP Properties.

After installing and configuring SNMP, you need to configure properties that specify the hosts and the networks to listen for.

In this task, you will configure the host and network specifications for an SNMP agent on the Windows Server 2019 device.

To configure SNMP properties, perform the following:

Click Start, and start typing Computer Management. When the Computer Management app appears, click it. This is what it looks like when it opens.

On the Services pane, scroll down the list and locate SNMP Service.

Right-click on SNMP Service and select Properties.

Right-click the Agent tab on the top and enter this information as shown below. Click Apply.

On the Security tab, click Add in the Accepted community names panel.

The SNMP Service Configuration dialog box appears.

Add the Community Name as ROC. Keep the Community Rights as READ ONLY. Click Add.

You are navigated back to the SNMP Service Properties (Local Computer) dialog box.

Notice that ROC appears as an accepted community name, with the READ ONLY rights.

Click Add on the Accept SNMP packets from these hosts radio button-panel.

The SNMP Service Configuration dialog box appears.

Type of the IP address. For example, mine will be 192.168.1.72 on Windows Server 2019.

You are navigated back to the SNMP Service Properties (Local Computer) dialog box.

Notice that 192.168.0.3 appears in the Accept SNMP packets from these hosts panels.

Click Apply and then click OK.

The SNMP service is now activated on your machine. The SNMP agent receives requests on port 161, by default.

An SNMP management software is required. This will act as the administrator console for monitoring the status of different devices that have the SNMP agent installed.

This is it for today, hope you enjoy it!

--

--

Zuber Kariye

Teen into computers and cybersecurity! Wannabe threat hunter, and pentester! Interested in programming, science and history!