Convert calls to ifconfig to an encapsulated class.