Its like anything else, if you consistently establish and enforce boundaries, even a dog prone to attacking other animals will quickly learn what he can and cannot do.
With that said, I grew up with a Beagle on a farm with loads of chickens-- he was never interested in them... instead she...