Eeyore (we name our livestock!) grazes in among the hazelnuts. Animals are rotated frequently to avoid hoof damage to tree roots. A portable two-strand polywire fence with a solar charger is all that is needed. For pigs, both strands are lowered to nose and ear height.
Photo courtesy Acres U.S.A.