With this library you can modify /etc/network/interfaces easily