You can breed a Pokémon with all 31 IVs (or whatever IVs you wish), and it can take as little as one breeding session. A Ditto with 31 IVs in every stat is your most useful tool for breeding perfectly IV'd Pokémon. This is because Ditto can breed with anything breedable, and the perfect IVs in every stat increase your chances of getting perfect IVs. It's probably easier to aim for 31 in the stats that matter and just let the stats you won't use (like special attack for a physical Larvitar) be whatever.
It's true that only 3 IVs are passed down from the parents (any IV from any parent. They can all come from one parent even), the other three are randomly generated, and it's possible for them to be all 31. This is really difficult to do without RNG though, so I recommend you head to the Wi-Fi board and check out the All Generation PRNG Help topic for more information.