Network_interface_change is a project mainly written in ..., it's free.
Purpose: Use Ruby and Net::SSH to spawn SSH sessions which perform commands on hosts. This script is currently designed to change the subnet mask in /etc/network/interfaces and a few other things