How can I specify the source IP used for polling?

Greetings,

We are announcing the Linux loopbacks into BGP for server redundancy on our network. How can I setup LibreNMS to choose a particular source IP for its device polling?
eg; I want it to send polling out ens160 with the source IP of the Loopback. (My IP routing is setup and I can SSH to this server using its Loopback IP, the problem I am having is getting LibreNMS to source its polling packets with the Loopback IP 172.16.16.16)

@01snmp01:/opt/librenms# nano /etc/netplan/00-installer-config.yaml
GNU nano 4.8 /etc/netplan/00-installer-config.yaml

This is the network config written by ‘subiquity’

network:
ethernets:
ens160:
addresses:
- 10.0.0.22/27
gateway4: 10.0.0.1
lo:
match:
name: lo
addresses:
- 172.16.16.16/32
nameservers:
addresses:
- 8.8.8.8
search:
- scooby-eng.net
version: 2

Many thanks
Dana

Hi Dana,

You can try using the clientaddr option in the snmpd.conf file of your LibreNMS server.
https://linux.die.net/man/5/snmp.conf

Regards,
Marcelo

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.