Over the weekend I setup an Ubuntu 12.04 server VM. I edited /etc/network/interfaces so eth0 has a static IP address... going from memory here: netmask 255.255.255.0 ...
This how-to shows how to use free Ansible software to automate configuration of Cisco routers and links to other Ansible modules that apply to other vendors' gear and support other functionality ...