Make sure other family members and visitors understand this command, as well. It is crucial that your dog understand that all family and visitors are above his rank in the pack. Otherwise, he will lash out and try to assert himself on everyone. While using the Off command may not be appreciated by most visitors, but it is more important that a dog has a good greeting manner with all people. A little effort on everyone's side makes your dog disciplined and docile.
By playing some simple games like fetch with your dog, you can kill 2 birds with one stone. First is that the actual playing of the game will surely tire them out so much that they won’t have the energy to jump the fence. Second is that you are associating the fun of the game with the yard. If they have fond memories of the yard they will be less likely to try and get out.
Before you answer the door and welcome guests, clip a leash on your canine, preferably to a front-clip harness or head halter, so that he can be controlled in a manner such that he cannot greet if he jumps. When your dog is calm, with all four paws on the floor — which may take up to a few minutes for more excitable dogs — allow him to approach guests and say hello. If he jumps, gently turn and lead him away; wait for calm behavior before approaching again. For particularly excitable dogs, another option is to remove the dog to a contained area before guests come in. An exercise pen or baby gate is adequate containment for many dogs. If you have an athletic or large dog that can easily scale a gate, use a crate or move him to a room with a closed door. Once your dog calms down, clip on his leash and allow him to come out and greet your guests.
To a dog, space and balance are very important. If you take a step backwards or lean out of a jumping dog’s way, it will continue to jump. To a dog, it is overtaking your space, which only pack leaders are allowed to do. When a dog jumps, step into the dog. Picture a sphere around you and are not going to allow anyone or anything to come into your space. When the dog jumps, step into it sideways with your body, shoulder towards the dog. Don't face the dog head-on (you may not have time to turn so don’t worry about it if this is the case). You are not trying to knock the dog down, although this may happen. Don’t be alarmed if you do knock the dog over. Although you don’t want to abuse the dog by knocking it around, this may actually go a long way toward breaking it of the jumping habit as it will create a negative experience. Dogs are incredibly physical creatures and can withstand a lot of physicality without any harm. The odds of inflicting any serious injury are miniscule. You are simply calmly filling up your space with your body, and in return, setting the dog off-balance, which is an uncomfortable feeling for a dog. Lean slightly forward, not backward. Never lean backward, as you will be giving the dog that space. Casually and calmly, keep filling your space, not allowing room for the dog to come in. Remember, your goal is not to knock the dog down, it's just to retain your space.
Other commands can be substituted for ‘sit’ if you prefer, such as ‘stay’ or ‘down.’ However, if your dog simply gets too excited to execute these commands properly (as is often the case, especially with puppies) try diverting their attention elsewhere. Ask them to go find their ball, or a favorite toy, as a way to distract them and expend some energy. And, as always, reward the good behavior with praise.
Dog Obedience Advice is a free resource offering advice on dog training and a host of common problems dog owners face, including: aggression in all its forms, from territoriality to possessiveness, and from dominance aggression to aggression caused by fear; the most common and frustrating obedience issues, such as problem digging, chewing, and barking; and comprehensive information on house training methods with sound advice on tackling all of the most common housebreaking problems.
I remember going to a dog park where a little 4-month-old Boxer puppy ran around jumping on everyone. The dog was not heavy enough to knock most of the adults down. However, it left everyone with muddy pants and the dog was big enough to knock over small children. The owner did nothing to stop the jumping puppy. After all, it was just a small pup. Everyone around her was pretty annoyed at the muddy prints the dog was leaving all over their clothes. That is an owner who will have a problem with her dog jumping on people when it gets older.