Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

ping and traceroute

from the attachment that i have attached

Kindly explian me how Ping and traceroute works when i ping from 10.1.1.1 to 10.1.1.2

Waht will be the possible output for the traceroute 10.1.1.2 from 10.1.1.1

9 REPLIES
Community Member

Re: ping and traceroute

ping command is used to check your connectivity to the destination/machine. by traceroute you can verify the hops it goes through while moving towards ur desired destination. it will tell u the no. of hops ur destination is away from you and how much time do u take to reach the destination.

* Please rate the post if it helps. *

Regards.

Community Member

Re: ping and traceroute

According to the scenario as shown in your attachment,

when you try to ping from 10.1.1.1, this command if ends in success will tell you that you can reach the host (that it is up, running and accessible). where as the the trace route will tell you will take the path

10.1.254.1, 10.1.254.2, 10.1.254.3, 10.1.254.4 i.e 4 hops to reach the desird host.

* Please rate the Helpful posts.*

Regards.

Re: ping and traceroute

HI

Ping is used to check connectivity between u r hosts.

As posted above.and traceroute will show u the path u r packets r taking accross hops to reach the destination.

But in u r case as u r pinging from 10.1.1.2 to 10.1.1.1 as they are on the same network.it will show u r default gateway IP as the next with a value of 1.

Thanks

Mahmood

Community Member

Re: ping and traceroute

how it works....swicth broadcasts right ?... if 10.1.1.1 pings...is it such such a way that it broad casts to all ports until a reply is got ?

Re: ping and traceroute

HI

The switch is going to send an arp request to get the mac-address of the host if it is not in the cam-table.

Thanks

Mahmood

Community Member

Re: ping and traceroute

yes, what you say is ARP. The Broadcost will happen only at the first time, then next time it will take the entries from the MAC table,

The other thing, since you are using the switch and all the systems are working in the same VLAN, why do you want to have the IP addresses on the switches, just truncking is enough to communicate each other.

While talking about trace route, 10.1.1.2 's next hop will be 10.1.1.1. if you use trunking betn switches.

-Senthil.C

Community Member

Re: ping and traceroute

The benefit of having an IP on the switch is for management (telnet into the switch remotely) and monitoring purposes. Without an IP to it, you need to be physically at the switch and go through the console cable to configure or troubleshoot.

Jeff.

Bronze

Re: ping and traceroute

Also keep in mind that if you ping from a cisco command line, you are using udp ping, not ICMP.

Hall of Fame Super Gold

Re: ping and traceroute

Sean

You have confused ping and traceroute. ping uses ICMP (echo request and echo reply) whether it is Cisco or non-Cisco. traceroute on Cisco uses UDP where tracert on Windows PCs uses ICMP.

HTH

Rick

576
Views
4
Helpful
9
Replies
CreatePlease to create content