You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The snmpd generation logic #15487 considers only if the mgmt ip is configured throught config_db. However, the IP address can be obtained through DHCP. Additionally when Loopback0 is used for BGP peering, the snmpd.conf generates agentAddress in snmpd.conf which results in snmp being reachable only through Loopback0. This will break the deployments where snmp is reached through mgmt network and has DHCP based ip address configuration.
Steps to reproduce the issue:
Obtain IP address of mgmt through DHCP
Configure Loopback IP and perform config reload.
Run snmpget from mgmt network.
Describe the results you received:
snmpget fails
snmpget -v2c -c public 10.210.25.145 1.3.6.1.2.1.1.1.0
Timeout: No Response from 10.210.25.145.
We will need to update STATE_DB with changes to mgmt ip.
With the STATE_DB update, we could have snmp listening on STATE_DB change and restart snmpd so that it can listen on newly configured mgmt IP obtained via DHCP.
Description
The snmpd generation logic #15487 considers only if the mgmt ip is configured throught config_db. However, the IP address can be obtained through DHCP. Additionally when Loopback0 is used for BGP peering, the snmpd.conf generates agentAddress in snmpd.conf which results in snmp being reachable only through Loopback0. This will break the deployments where snmp is reached through mgmt network and has DHCP based ip address configuration.
Steps to reproduce the issue:
Describe the results you received:
snmpget fails
Describe the results you expected:
snmpget should succeed as below
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
sonic_dump_r-lionfish-13_20230815_223522.tar.gz
before_lb_ip_snmpd.conf.txt
after_lb_ip_snmpd.conf.txt
The text was updated successfully, but these errors were encountered: