Binding to specific IP
Moderators: Developers, Moderators
Binding to specific IP
I've done a search and looked around Google but have been unable to find anything so far.
I have Cacti configured on a server but I need it to work such that any SNMP requests from the Cacti server out to other devices will come from a different IP (not the eth0 IP but the IP on eth0:1).
Is there any way I can achieve this?
Thanks!
I have Cacti configured on a server but I need it to work such that any SNMP requests from the Cacti server out to other devices will come from a different IP (not the eth0 IP but the IP on eth0:1).
Is there any way I can achieve this?
Thanks!
I don't see how that would work. snmpget/walk/etc do not take an interface or subinterface option, so I don't see how the commands could be told to use a different interface.
This would be a network issue, and should be left at that level....
This would be a network issue, and should be left at that level....
--
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Live fast, die young
You're sucking up my bandwidth.
J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
That's not correct. From "man snmp.conf"
Perhaps this solves already the initial problem, because it's outside cacti at all
Reinhard
So in fact it is possible to specify the source address (only as a global option, don't know how this will work if different targets are reachable on different interfaces).clientaddr [<transport-specifier>:]<transport-address>
specifies the source address to be used by command-line applications when sending SNMP requests.
See snmpcmd(1) for more information about the format of addresses.
This value is also used by snmpd when generating notifications.
Perhaps this solves already the initial problem, because it's outside cacti at all
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yep, didn't I say this? But it IS possible to direct ALL snmp* commands to use the specified interface. Still not sure, how spine will work. I bet it will NOT use the specified interface. But that's one for LarryLinegod wrote:I still stand by the statement ... it can't be moved into Cacti....
Reinhard
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I think clarification is needed.
Utilities such as the ones Cacti can use:
snmpget
snmpwalk
snmpbulkget
snmpbulkwalk
These are the utilities of concern. I don't know the syntax, but I don't recall these paying much attention to a configuration file. And I know they will not pay attention to snmpd.conf. Maybe snmp.conf, but I'm uncertain.
Utilities such as the ones Cacti can use:
snmpget
snmpwalk
snmpbulkget
snmpbulkwalk
These are the utilities of concern. I don't know the syntax, but I don't recall these paying much attention to a configuration file. And I know they will not pay attention to snmpd.conf. Maybe snmp.conf, but I'm uncertain.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 2 guests