SNMPv3 - 2 questions

Hello again - I have two questions regarding SNMPv3

  1. Is there a way to configure a trap-destination? Equivalent to the snmp-server host command on a Cisco device? Along with that, how do you enable/manipulate specific traps?

  2. My upstream interface is DHCP-based, and so the address is unpredictable. Is there a way to specify an listening interface or otherwise programmatically tell the VyOS router to listen on eth0, whatever it’s IPv4 address might be?

Thanks!

1 - set service snmp trap-target <x.x.x.x>
2- You may try:

# Allow snmp listening on all addresses
set service snmp listen-address 0.0.0.0

# Then allow from certain clients/networks
# https://docs.vyos.io/en/latest/configuration/service/snmp.html#example
# Allow monitoring access from the entire network
set service snmp community routers network 192.0.2.0/24
set service snmp community routers network 2001::db8:ffff:eeee::/64

# Allow monitoring access from specific addresses
set service snmp community routers client 203.0.113.10
set service snmp community routers client 203.0.113.20

Thank you. I should have considered 0.0.0.0

Is there a way to manipulate what traps are sent?

Thanks again!