Reset Search
 

 

Article

What is the cli syntax to source a ping from a specific interface

« Go Back

Information

 
TitleWhat is the cli syntax to source a ping from a specific interface
Question
What is the cli syntax to source a ping from a specific interface?
Environment
  • S-series
  • K-series
  • N-series
  • All firmware versions
Answer
  1. SSH to the switch
  2. enter into router mode
  3. Enter the following command : 
ping -S x.x.x.x Y.Y.Y.Y

Where x.x.x.x is the source address to ping from 
and Y.Y.Y.Y is the address to ping 
 
S4(su-router)->ping -S 10.152.40.16 10.152.40.1
PING 10.152.40.1 (10.152.40.1) from 10.152.40.16 64 bytes of data.
64 bytes from 10.152.40.1: icmp_seq=0 ttl=64 time=3.03 ms
64 bytes from 10.152.40.1: icmp_seq=1 ttl=64 time=1.53 ms
64 bytes from 10.152.40.1: icmp_seq=2 ttl=64 time=142 ms
64 bytes from 10.152.40.1: icmp_seq=3 ttl=64 time=1.40 ms
 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255