Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm configuring a Red Hat Linux server which will be sending UDP packets out but never receiving ARP responses. So a static ARP entry is required.

The obvious way to do this is.

arp -s distant_server

However that won't survive a network restart or a reboot. I could put it in the rc.local but that doesn't survive an ifdown && ifup.

The way I've found which seems to work is:

Add an entry to /etc/ethers along the lines of: distant_server

And create a /sbin/ifup-local:

arp -f

This feels really hacky, is there a better way?

share|improve this question

2 Answers 2

This is the proper way to both store a permanent arp entry, and to run a command on interface start.

A less hacky way would be to have ARP working properly on the network...

share|improve this answer

You can do this with nethook, a daemon that runs scripts when network interfaces change state.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.