On debian machines there is a folder `/etc/network/if-up.d/` that will run executable scripts when the network connection goes up. On CentOS and RedHat it works differently – it checks to see if there is a file `/sbin/ifup-local` and will execute that if it is available.
to create it:
sudo vi /sbin/ifup-local
sudo chmod +x /sbin/ifup-local
Debian’s directory structure is cleaner but I don’t think there is an out-of-the-box 1:1 on enterprise linux… yet.