# Ping from source ip address

**URL:** <https://community.f5.com/t/ping-from-source-ip-address/21020>\
**Category:** Technical Forums\
**Tags:** big-ip, application-delivery, ltm\
**Created:** [July 26, 2017, 9:24am UTC](https://community.f5.com/t/ping-from-source-ip-address/21020 "2017-07-26T09:24:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![faizan123\_23330](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@faizan123\_23330](https://community.f5.com/u/faizan123_23330)\
**Post date:** [July 26, 2017, 9:24am UTC](https://community.f5.com/t/ping-from-source-ip-address/21020/1 "2017-07-26T09:24:58Z")

</div>

Hi,

I have F5 LTMs in our production environment. I assign the two different ip addresses on two interfaces (1.1,1.2) 1.1 --\> 10.1.1.1 1.2 --\> 20.1.1.1

The default route on the F5 is (0.0.0.0 0.0.0.0 10.1.1.10)

i want to ping the IP 30.1.1.1 using the source ip of 1.1 interface(10.1.1.1). Kindly tell me the command how to do that ?

thanks.

---

<div class="post-metadata">

**Author:** ![Jad\_Tabbara\_J1](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@Jad\_Tabbara\_J1](https://community.f5.com/u/Jad_Tabbara_J1)\
**Post date:** [July 26, 2017, 9:34am UTC](https://community.f5.com/t/ping-from-source-ip-address/21020/2 "2017-07-26T09:34:04Z")

</div>

Hello Faizan,

you can use ping with -I argument like that

```tcl
ping -I source_IP dest_IP

```

Regards

---

<div class="post-metadata">

**Author:** ![Stan\_Ward](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@Stan\_Ward](https://community.f5.com/u/Stan_Ward)\
**Post date:** [July 15, 2020, 3:38pm UTC](https://community.f5.com/t/ping-from-source-ip-address/21020/3 "2020-07-15T15:38:22Z")

</div>

When I try that (on 14.1.2.3), I get:

bind: Cannot assign requested address

It doesn’t matter whether the IP is a self IP, a float, a SNAT, or a VIP, the message is always the same.

There are no route domains except the default %0.

---

<div class="post-metadata">

**Author:** ![Jimmy\_L](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Jimmy\_L](https://community.f5.com/u/Jimmy_L)\
**Post date:** [January 29, 2021, 9:30pm UTC](https://community.f5.com/t/ping-from-source-ip-address/21020/4 "2021-01-29T21:30:05Z")

</div>

Stan,

I had the same problem, but I found it was because I was in a different partition than the one in which my source self IP resided. From TMSH before switching to BASH do a “cd /\<partition\>” to switch to the partition where your self IP is, then switch to BASH an use Jad’s ping command.

---

<div class="post-metadata">

**Author:** ![Rebecca\_Moloney](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/rebecca_moloney/32/25005_2.png) [@Rebecca\_Moloney](https://community.f5.com/u/Rebecca_Moloney)\
**Post date:** [June 7, 2023, 10:29pm UTC](https://community.f5.com/t/ping-from-source-ip-address/21020/5 "2023-06-07T22:29:55Z")

</div>

Here’s some more BIG-IP LTM related content from Technical Articles that might be interesting for folks in this thread:

[Configuring ExternalDNS for Kubernetes with F5 CIS, LTM and DNS](https://community.f5.com/topic/278723)

[Using F5 BIG-IP LTM/AFM and AWAF to block (OFAC) Sanctioned Countries](https://community.f5.com/topic/293780)
