-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lldpRemManAddrTable SNMP failure due to DHCP on Mgmt interface #6636
Comments
can @abdosi take a look is it a 201911 image? |
For the MIB snmpwalk -v 2c -c public 1.0.8802.1.1.2.1.4.2 (Remote Peer) the data is generated from table LLDP_ENTRY_TABLE from APPDB . Can you provide o/p of that table when issue is seen . Above information you provided is for Local Table/Mib. |
@abdosi , thanks for looking at this issue. The reason why I gave the local chassis info is because that is what is being sent to the remote end through LLDP, I should have been clearer in my description of the issue. In any case, here is the output from the LLDP_ENTRY_TABLE. 127.0.0.1:6379> hgetall LLDP_ENTRY_TABLE:Ethernet0
|
sonic-net/sonic-buildimage#7036 sonic-net/sonic-buildimage#6636 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
…ciated with interface. (#201) Fixes:- sonic-net/sonic-buildimage#7036 sonic-net/sonic-buildimage#6636 Updated to use prefix of 16 byte instead of 6 byte for Ipv6 Management Address. Confirmed with other Vendor Nos Fixed lookup() so that get-next work correctly from test-cases. Updated all files to use new utility API ip2byte_tuple()
…ciated with interface. (#201) Fixes:- sonic-net/sonic-buildimage#7036 sonic-net/sonic-buildimage#6636 Updated to use prefix of 16 byte instead of 6 byte for Ipv6 Management Address. Confirmed with other Vendor Nos Fixed lookup() so that get-next work correctly from test-cases. Updated all files to use new utility API ip2byte_tuple()
@tbgowda this issue should be fixed now in both master and 201911. |
…ciated with interface. (sonic-net#201) Fixes:- sonic-net/sonic-buildimage#7036 sonic-net/sonic-buildimage#6636 Updated to use prefix of 16 byte instead of 6 byte for Ipv6 Management Address. Confirmed with other Vendor Nos Fixed lookup() so that get-next work correctly from test-cases. Updated all files to use new utility API ip2byte_tuple()
Description
Sonic node configured with DHCP fails the SNMP query for OID : 1.0.8802.1.1.2.1.4.2 (lldpRemManAddrTable)
Steps to reproduce the issue:
Describe the results you received:
iso.0.8802.1.1.2.1.4.2 = No Such Object available on this agent at this OID
Describe the results you expected:
Expected the sonic node to return LLDP information for the SNMP query
Additional information you deem important (e.g. issue happens only occasionally):
The issue seems to be with the way lldpd configuration file is formed and the presence of IPv6 address in the redisDB. When the SNMP query comes in the code that handles it is unable to decode the IPv4 address from redisDB since it also has IPv6 address.
It looks like IPv6 issue was addressed by changing the lldpd configuration in two places:
a. Does this one fix it for 1.0.8802.1.1.2.1.3.8: sonic-net/sonic-snmpagent#106 ?
b. This one seems to disallow IPv6 addresses altogether if there is a static IP: #5699 ?
On chassis with issue:
[lldpcli] # show chassis
Local chassis:
Chassis:
ChassisID: mac 02:0a:99:b9:bb:7e
SysName: sonic
SysDescr: Debian GNU/Linux 9 (stretch) Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64
TTL: 120
MgmtIP: 192.168.122.56
MgmtIP: fd00:c0:a8:7a:1::4d
Capability: Bridge, on
Capability: Router, on
Capability: Wlan, off
Capability: Station, off
root@sonic:/# cat /etc/lldpd.conf
configure system hostname sonic
pause
127.0.0.1:6379> HGETALL LLDP_LOC_CHASSIS
"lldp_loc_sys_cap_supported"
"28 00"
"lldp_loc_sys_cap_enabled"
"28 00"
"lldp_loc_sys_desc"
"Debian GNU/Linux 9 (stretch) Linux 4.19.0-9-amd64 Update README.md #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64"
"lldp_loc_sys_name"
"sonic"
"lldp_loc_man_addr"
"192.168.122.56,fd00:c0:a8:7a:1::4d"
"lldp_loc_chassis_id"
"02:0a:99:b9:bb:7e"
"lldp_loc_chassis_id_subtype"
"4"
Output of
show version
:branch 201911
The text was updated successfully, but these errors were encountered: