I have a Debian machine with an SNMP pooler running, but I am running into an issue with getting the pooler to use a specific interface.
The Debian machine has 3 interfaces
allow-hotplug eth0
iface eth0 inet static
address 10.1.1.3
netmask 255.255.255.0
gateway 10.1.1.1
dns-nameservers 10.1.1.6
allow-hotplug eth1
iface eth1 inet static
address 10.1.1.7
netmask 255.255.255.0
allow-hotplug eth2
iface eth2 inet static
address 10.1.1.8
netmask 255.255.255.0
On the client machine that this machine is trying to get SNMP info from, it will allow SNMP requests from 10.1.1.3, but for some reason when the Debian sends requests, its using 10.1.1.7 (eth1). I also noticed that when I ping the client (10.1.1.5) from the Debian machine Wireshark says that the ICMP packets are coming from 10.1.1.7. Why wouldn't it use the first interface in the list (10.1.1.3)?
Routes:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.1.1.1 0.0.0.0 UG 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth2
Other notes:
- The other interfaces are for some apache2 ssl websites
- For SNMP I am using LibreNMS https://github.com/librenms/librenms