Use theWhen I do packet captures to test pings I see the interface ip
-S
option with ping. -S src_addr
Use the following IP address as the source address in outgoing
packets. On hosts with more than one IP address, this option can
be used to force the source address to be something other than
the IP address of the interface the probe packet is sent on. If
the IP address is not one of this machine's interface addresses,
an error is returned and nothing is sent.
Thank you and sorry for the late reply. Yes they are in the same subnet.We're going to need more information. How are your interfaces configured? Are the CARP addresses and interface addresses in the same subnet?
Thank you SirDice, so by default icmp protocol will use the interface outgoing ip and not the carp ip, right?Use the-S
option with ping.
Code:-S src_addr Use the following IP address as the source address in outgoing packets. On hosts with more than one IP address, this option can be used to force the source address to be something other than the IP address of the interface the probe packet is sent on. If the IP address is not one of this machine's interface addresses, an error is returned and nothing is sent.
Everything (not only ping) will use the first IP address on the interface, that's usually the IP of the host, the CARP address is an alias. So your applications/services will need to be configured to bind to the CARP address too.so by default icmp protocol will use the interface outgoing ip and not the carp ip, right?