add option to specify specific ip for default interface and add tests