Page MenuHomeVyOS Platform

snmpd cannot start if ipv6 disabled
Closed, ResolvedPublic

Description

snmpd try to listen on ipv6 addresses, but if it is disabled by system, cannot start

Details

Difficulty level
Unknown (require assessment)
Version
1.3-20200323
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

@elbandi can you check it on the latest rolling release?

Viacheslav assigned this task to elbandi.

By default:

vyos@r4-1.3:~$ sudo netstat -tulpn | grep 161
udp        0      0 0.0.0.0:161             0.0.0.0:*                           1405/snmpd          
udp6       0      0 :::161                  :::*                                1405/snmpd          
vyos@r4-1.3:~$

With option ipv6 disabled:

vyos@r4-1.3# run show conf com | match "ipv6 disab"
set system ipv6 disable
[edit]
vyos@r4-1.3# sudo netstat -tulpn | grep 161
udp        0      0 0.0.0.0:161             0.0.0.0:*                           2200/snmpd          
[edit]
vyos@r4-1.3#
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 5:11 PM
erkin removed a subscriber: Active contributors.