Edit: /etc/sysconfig/iptables
Add the following lines AFTER the line “# dlm”
-A RH-Firewall-1-INPUT -p udp --dport 161 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 162 -j ACCEPTExecute:
systemctl restart iptables.service
systemctl enable snmpd.service
systemctl restart snmpd.serviceTest localhost:
snmpwalk -v 2c -c public 127.0.0.1



