Hello,
I have a router with IP SLA configured. Configuration is as follows :
ip sla 2
http get http://www.cisco.com source-ip A.A.A.A name-server B.B.B.B
tag WEB
ip sla schedule 2 life forever start-time now
A.A.A.A is a public IP address configured on g0/1 interface (which is up/up) and B.B.B.B a valid DNS server.
Ping ok to the DNS server with A.A.A.A as the source address.
Instead of using the source-ip A.A.A.A, the router uses another one (C.C.C.C configured on the g0/0 interface, private IP address) even if it's not configured on the IP SLA parameters.
Here is the debug :
Jun 1 16:06:53 MEZ: IPSLA-INFRA_TRACE:OPER:2 slaSchedulerEventWakeup
Jun 1 16:06:53 MEZ: IPSLA-INFRA_TRACE:OPER:2 Starting an operation
Jun 1 16:06:53 MEZ: IPSLA-OPER_TRACE:OPER:2 Starting http operation
Jun 1 16:06:53 MEZ: IPSLA-OPER_TRACE:OPER:2 Starting dns operation
Jun 1 16:06:53 MEZ: IPSLA-OPER_TRACE:OPER:2 Query name - www.cisco.com
Jun 1 16:06:53 MEZ: IPSLA-OPER_TRACE:OPER:2 Dest: B.B.B.B, Source address - C.C.C.C
Jun 1 16:06:53 MEZ: IPSLA-OPER_TRACE:OPER:2 actual target queried = www.cisco.com
For information, the contents of show ip sla configuration 2 :
sh ip sla configuration 2
IP SLAs Infrastructure Engine-III
Entry number: 2
Type of operation to perform: http
Target address/Source address: 0.0.0.0/A.A.A.A
Target port/Source port: 80/0
Type Of Service parameters: 0x0
Vrf Name:
HTTP Operation: get
HTTP Server Version: 1.0
URL: http://www.cisco.com
Proxy:
Raw String(s):
Cache Control: enable
Owner:
Tag: WEB
Operation timeout (milliseconds): 60000
Schedule:
Operation frequency (seconds): 60 (not considered if randomly scheduled)
Next Scheduled Start Time: Start Time already passed
Group Scheduled : FALSE
Randomly Scheduled : FALSE
Life (seconds): Forever
Entry Ageout (seconds): never
Recurring (Starting Everyday): FALSE
Status of entry (SNMP RowStatus): Active
Threshold (milliseconds): 5000
Distribution Statistics:
Number of statistic hours kept: 2
Number of statistic distribution buckets kept: 1
Statistic distribution interval (milliseconds): 20
History Statistics:
Number of history Lives kept: 0
Number of history Buckets kept: 15
History Filter Type: None
I tried to deactivate and reactivate IP SLA parameters but without success.
Thanks for your help.