[config] Add ip address configuration method