Redirecting ICMP with HSRP
Problem
You want to enable ICMP redirects with HSRP.
Solution
In older IOS releases, when you enable HSRP on an interface, the router will automatically disable ICMP redirection. However, starting with IOS Version 12.1(3)T, Cisco has changed how ICMP redirection works with HSRP, and it is now enabled by default.
You can explicitly enable ICMP redirects on HSRP-enabled interfaces with the following commands:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#FastEthernet 1/0standby redirects enableRouter2(config-if)#exitRouter2(config)#endRouter2#
The following commands prevent the router from the sending ICMP redirects on HSRP-enabled interfaces:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#FastEthernet 1/0no ip redirectsRouter2(config-if)#standby redirects disableRouter2(config-if)#exitRouter2(config)#endRouter2#
The unknown keyword allows you to use ICMP redirection to nonHSRP routers:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#FastEthernet 1/0standby redirects unknownRouter2(config-if)#exitRouter2(config)#endRouter2#
Discussion
When a router receives a packet from a LAN interface, but the route to the destination points to another router on the same LAN segment, the router will send an ICMP Redirect ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access