Ukrainians in Russia and the occupied territories have been given a six-month ultimatum.