Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
there is two ways to do so easy way is (let's suppose R1 is your router)R1#ping 172.1.1.1 source (ip address of the loopback ) or R1 # ping
Protocol [ip]:
Target IP address: 172.1.1.1
.
.
Source : (ip address of the loopback )
.