If you find this post helpful and would like to support my work, you can send a donation via TRC-20 (USDT). Your contributions help us keep creating and sharing more valuable content.
Router(config)#access-list 101 deny icmp host 192.168.1.20 host 192.168.2.100
Router(config)#access-list 101 permit ip any any
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip access-group 101 in
PC>ping 192.168.2.100
Pinging 192.168.2.100 with 32 bytes of data:
Reply from 192.168.2.100: bytes=32 time=0ms TTL=127
Reply from 192.168.2.100: bytes=32 time=1ms TTL=127
Reply from 192.168.2.100: bytes=32 time=0ms TTL=127
Reply from 192.168.2.100: bytes=32 time=0ms TTL=127
Ping statistics for 192.168.2.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>
PC>ping 192.168.2.100
Pinging 192.168.2.100 with 32 bytes of data:
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Ping statistics for 192.168.2.100:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC>