ICMP Redirected Messages

These messages provide the routers the ability to direct hosts to a different default gateway for certain destination addresses. Most hosts can have only one default gateway, so it is up to the router to bounce a message back to them redirecting them to another router with a better path to a given destination.

icmp redirect diagram

Example: Host1 has R2 as the default gateway, but is trying to reach network If Host1 forward his packets \ data to R2, R2 will not be able to route the traffic because it is not connected to that network of This would make Host1 unable to communicate with that network. 

This is where ICMP redirect is useful, R1 and R2 do not have to be connected for this to work. R2 can configure a ICMP redirect when it received a packet with a destination IP of and reply to that request with the IP of a different default gateway R1 in this case. The host will then forward that packet again on to R1 and then it will be able to reach it destination. 

No comments:

Post a Comment