How the IPv4 ‘Record Route’ Option Works

ipv4Networkrfc

As written in the RFC 791 this option is useful to record the addresses of the routers that an ip datagram goes through.

I'm sending an ip datagram with an ICMP echo message, i've set the option type (of the header ip) on 7, the option length on 7 and the pointer on 4.

I expect an echo reply with the first router address to come back, but this doesn't happends. Am i doing something wrong or the option is not supported anymore?(If i don't set the options, the echo response comes back as expect)

Best Answer

Strictly about question: It works as stated by RFC791, as you have figured.

"I expect an echo reply with the first router address to come back, but this doesn't happends."

If you are doing this out on the wild, as it's you on your computer pinging some random IP from the Internet, it won't work as this is considered a security vulnerability and hence likely moderated by ISP's/others.

Such risk can be seen for example Cisco Security ICMP Record Route vulnerability

To test this feature you will probably need to have your own devices/images, regardless of the intended OS to get this setting working.

Real life usage for 'record route' can be seen in RSVP for MPLS.