The following warning will be displayed during commit:
WARNING: SNMP listen address “192.168.56.2” not configured!
However using “netstat -atunp” verifies that the snmp process do listen to 192.168.56.2 (and 127.0.0.1) after the commit with the warning.
Workaround is to remove listen-address.
The output of “netstat -atunp” will then show that snmp process binds to 0.0.0.0:161.
Config example of section snmp:
snmp {
community TEST {
authorization ro
network 192.168.56.0/24
}
contact TEST
listen-address 192.168.56.2 {
port 161
}
location TEST
trap-source 192.168.56.2
vrf MGMT
}
Using version VyOS 1.4-rolling-202306290317