cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
582
Views
0
Helpful
3
Replies

ping 8.8.8.8 What is the source IP?

Switch is using a loopback IP and multiple VLANs.
All VLANs are pingable as next hops.
If ping to an external DNS, what is the source IP?

3 Accepted Solutions

Accepted Solutions

Nearest interface to destination SW use it IP

Mostly is the IP of interfaces use in default route

MHM

View solution in original post

Joseph W. Doherty
Hall of Fame
Hall of Fame

On a L3 switch, correct?

If so, its default is as already noted by @MHM Cisco World , i.e. the switch's egress interface IP.

BTW, some services, e.g. FTP, support a configuration command to designate a source IP.  This overrides, the above, default behavior.  (Don't recall this being a config option for ping, but I recall a switch's ping may support a source option.)

View solution in original post

Martin L
VIP
VIP

To add, U can check show ip cef  also/and/or using show ip route 

also, u can try debug ip icmp  

Regards, ML
**Please Rate All Helpful Responses **

View solution in original post

3 Replies 3

Nearest interface to destination SW use it IP

Mostly is the IP of interfaces use in default route

MHM

Joseph W. Doherty
Hall of Fame
Hall of Fame

On a L3 switch, correct?

If so, its default is as already noted by @MHM Cisco World , i.e. the switch's egress interface IP.

BTW, some services, e.g. FTP, support a configuration command to designate a source IP.  This overrides, the above, default behavior.  (Don't recall this being a config option for ping, but I recall a switch's ping may support a source option.)

Martin L
VIP
VIP

To add, U can check show ip cef  also/and/or using show ip route 

also, u can try debug ip icmp  

Regards, ML
**Please Rate All Helpful Responses **