05-18-2011 06:14 AM - edited 03-04-2019 12:26 PM
Hi,
Does anyone know there is a command that would bascially mean "ip icmp source-interface"? I know of another commands like this "ip tftp source-interface" or "ip ftp source-interface" that will allow you to source specific services from a specific interface by default. Now, I know that with an extended ping or traceroute I can select the source interface, but the problem I am facing is we have an SNMP script that is run from a cacti graphing server which has "no" attribute to set the source interface. This is meaning there are some situations where the srcipt is not working, but if we could tell the router to always source icmp packets from the loopback it would.
Any ideas welcome?
05-18-2011 06:28 AM
Hello Dale,
yes you can in enable mode privilege level 15
ping 192.168.1.1 source ?
A.B.C.D Source address
05-18-2011 06:51 AM
Hi Giuseppe,
Thanks for the reply, the script is a pearl script that runs an SNMP mib to invoke the ping request, hence we do not have access to the source option in the command you mention, which was why I was wondering if there was a way to change the default ICMP source interface in the global config?
Thanks
05-18-2011 08:44 AM
Dale
Unfortunately I am not aware of any option that would source all ICMP from a specific interface. You are correct that some protocols (you mention TFTP and FTP and there are quite a few others) do provide the ability to globally specify a source interface. But I am not aware that the ability exists to do that for ICMP.
HTH
Rick
05-18-2011 09:56 AM
Hello Dale,
There is a default as equipments source the ICMP packets with the IP address of the interface packets exit. I know not of any other command that can help you. You will have to modify/create the script by adding a parameter to it (the source IP address).
05-18-2011 10:12 AM
Hi,
I have never used these personally , but you have few options :-
1> You can use "iosint = source_address" parameter in the MIB itself.
2> Create an SAA , with router rtr and then configure "type echo protocol " command.
http://www.cisco.com/en/US/docs/ios/12_2/configfun/command/reference/frf017.html#wp1107078
Manish
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide