Migrate unit ports to machine port ranges