I want to see how the routing table changes on a Linux system, when an ICMP redirect is received. For that I use
icmpush -v red -sp current-gateway -gw new-gateway -dest google.com -c host -prot tcp my-eth1-ip-address
(which returns success), but the result of
route -n
remains the same. Of course I have checked the the output of
cat /proc/sys/net/ipv4/conf/eth1/accept_redirects
which is 1. This is an Ubuntu 12 machine, with the last stable version of kernel, no firewall installed.
So the question: what could be going wrong?