add ip functions for redhat