Before you attack a town that is far from your land, offer peace to the people who live there. If they surrender and open their town gates, they will become your slaves. But if they reject your offer of peace and try to fight, surround their town and attack. Then, after the LORD helps you capture it, kill all the men. Take the women and children as slaves and keep the livestock and everything else of value.
but he did tell the Gibeonites that they would have to be servants of the nation of Israel. They would have to cut firewood and bring it for the priests to use for burning sacrifices on the LORD's altar, wherever the LORD decided the altar would be. The Gibeonites would also have to carry water for the priests. And that is still the work of the Gibeonites.