Um, B12 is not a bacteria. B12 is a chemical compound with vitamin activity. See:
http://en.wikipedia.org/wiki/Vitamin_B12
Some organisms produce Pseudo B12, which refers to B12-like substances which are found in certain organisms but those that produce Pseudo B12 produce a form which does NOT have B12 biological activity for humans, a fact which may pose a danger to vegans and others on limited diets.
Again, B12 is NOT a bacteria.
Vitamin B12 is naturally found in meat (especially liver and shellfish), milk and eggs. Animals, in turn, must obtain it directly or indirectly from bacteria because bacteria is the only organism that can produce or synthesize B12, and these bacteria may inhabit a section of the gut which is posterior to the section where B12 is absorbed.
Herbivorous animals must either obtain B12 from bacteria in their rumens, or (if fermenting plant material in the hindgut) by reingestion of cecotrope feces. Eggs are often mentioned as a good B12 source, but they also contain a factor that blocks absorption. Certain insects such as termites contain B12 produced by their gut bacteria, in a manner analogous to ruminant animals.[
According to the U.K. Vegan Society, the present consensus is that any B12 present in plant foods is likely to be unavailable to humans and so these foods should not be relied upon as safe sources, as the B12 analogues can compete with B12 and inhibit metabolism. Also, vegan humans who eat only plant based foods must ordinarily take special care to supplement their diets accordingly. The only reliable vegan sources of B12 are foods fortified with B12 (including some soy products and some breakfast cereals), and B12 supplements.
While lacto-ovo vegetarians usually get enough B12 through consuming dairy products, vitamin B12 may be found to be lacking in those practicing vegan diets who do not use multivitamin supplements or eat B12 fortified foods. Examples of fortified foods often consumed include fortified breakfast cereals, fortified soy-based products, and fortified energy bars.
Claimed sources of B12 that have been shown through direct studies of vegans to be inadequate or unreliable include laver (a seaweed), barley grass, and human gut bacteria.