First of all, make an attempt to speak with your neighbors. Obedience training can help a lot, but dogs are difficult to teach when it comes to defending their territory. You may decide that it would be best to put up a solid fence like a wooden fence that the dogs can not see through.