ICMP has no any particular port, take a look at the structue of the ICMP packet it doesn't have any option to set the port.
the picture above i get from this link: http://en.wikipedia.org/wiki/Ping
if you want to block ping requests then you might need to create an access list for that.
Example below is allow ICMP, in the access list command below replace the keyword permit with deny, it should deny ICMP packets. But just remember ICMP helps a lot on troubleshooting.
This figure shows that ICMP sourced from NetA destined to NetB is permitted, and pings sourced from NetB destined to NetA are denied.
This configuration permits only echo-reply (ping response) packets to come in on interface Ethernet 0 from NetB towards NetA. However, the configuration blocks all echo-request ICMP packets when pings are sourced in NetB and destined to NetA. Therefore, hosts in NetA can ping hosts in NetB, but hosts in NetB cannot ping hosts in NetA.
hostname R1!interface ethernet0ip access-group 102 in!access-list 102 permit icmp any any echo-reply
sandilya dhanwada wrote:
I have never been able to find a definite answer for this -
Does ICMP use a specific port?
I have read something about blocking port 7 to stop ping requests etc. But nothing concrete as such. If somebody can clarify, that will be great.
ICMP has it's own protocol number (in a similar to the L4 protocol numbers that TCP and UDP have).
TCP is protocol 6
UDP is protocol 7
ICMP is protocol 1
(Some people argue that ICMP is or isn't a L4 protocol, due to it having it's own protocol number. At the end of the day, it is ok for disagreement of L4 or not, because we can agree that it has it's own protocol number. ICMP is really an assistant to IP, at L3.) But I digress.
With TCP and UDP, they use port numbers to refer to application layer services such as HTTP (port 80), TELNET (port 23) and so forth for TCP, and UDP services have their own well known ports too.
With ICMP, it doesn't use port numbers, but has ICMP "types" along with ICMP "codes".
For a full list of these, you can visit here:
The most popuar ICMP types are an PING request and reply, which uses an ICMP type 8 (echo-request), and an ICMP type 0 (echo-reply).