Is it possible to use the same MAC address for an entire subnet?

Posted by Bruce on Server Fault See other posts from Server Fault or by Bruce
Published on 2012-06-18T02:08:19Z Indexed on 2012/06/18 3:17 UTC
Read the original article Hit count: 155

Filed under:

I wish to add static entries to the ARP table of my machine so that it uses a dummy MAC 00:11:22:33:44:55 for any IP address within the subnet 10.0.0.0/8

Using arp -s 10.0.0.0/8 00:11:22:33:44:55 does not work. What can I do?

PS - I know it might sound strange why anyone would want to do this but kindly bear with me here.

EDIT: I am using this so that the hosts do not send a broadcast ARP message. I route the packets to the appropriate last hop router which changes the dst MAC from the fake MAC to the MAC of the dst IP address. I can get everything working except I have to manually enter the fake MAC for each subnet IP address.

© Server Fault or respective owner

Related posts about arp