only set gateway and ip if statically set