cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1785
Views
4
Helpful
9
Replies

ping and traceroute

rangap26.
Level 1
Level 1

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 9

waqas.ashraf
Level 1
Level 1

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.

waqas.ashraf
Level 1
Level 1

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.

mahmoodmkl
Level 7
Level 7

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

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 ?

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

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

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.

sean
Level 3
Level 3

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

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

HTH

Rick