I've put up nearly 1400ft of 5ft chainlink fence this year. My son calls it "Dads compound". My 6 dogs don't bother people and likewise.
Electric works. We were keeping our male anatolian in with electric 3 strands, problem was the neighbors female mixed breed was coming to visit and was jumping through the fence, between strands. I had to add another run of wire to keep their dog out of my yard. My biggest concern wasn't their dog visiting, but rather our dogs following her out of the fence when she decided to leave. The 4th run of wire did the trick. I witnessed her getting zapped. She yiped as she was running down my driveway and hadn't seen her around again since.
While checking cows and a camera in the bottom the day before yesterday, I had my dog by my side. While walking back the neighbor(closest house on our road is over a quarter mile away) dog was in my pasture, and a new dog I am assuming was a male darted out of a brush pile down in the bottom, where I had heard a young deer blow. My anatolian took off after him. That dog quickly went under my barbed wire pasture fence. My dog likely would have killed that dog if it hadn't left the pasture. Luckily he didn't try to go through the fence after him.
I may have to take my own advice and remind my neighbor that I run traps.... I hate for them to keep their dog chained up, but also don't need them around my cows or harassing deer.