I wrote a whole page on fence building and then just deleted it. I was going to tell you how I built my kennel but I don't think that is the proper thing to do here. My suggestion instead is to get the Premier 1 fencing catalog from Premier 1 of course.
Its tells you step by step what it has for fencing products, how to order it and just how to build a fence to keep anything in. Yes anything, from deer and goats, to sheep horses and cattle. It gives you options too, from the least expensive to the most expensive and rates them by durability and by longevity.
I have a catalog and its 120 pages long and reads like a how too book for fencing. Even if you find cheaper products elsewhere, at least you will see what you have for options, make a good plan, and then build a good fence. Here is a link to their website and good luck.
I have no intention of traveling from birth to the grave in a manicured and well preserved body; but rather I will skid in sideways, totally beat up, completely worn out, utterly exhausted and jump off my tractor and loudly yell, "Wow, this is what it took to feed a nation!"