Ukrainian military is digging in to defend two eastern cities as it endured heavy bombardment from Russian forces.