Safety around cattle
Cows are usually docile creatures. However, in later years there has been an increase in accidents, some of some fatal, on pastures where cows are grazing together with their calves. Many farmers have switched from dairy to beef farming and let the calves grow up with their mothers. Often the herd also includes a bull. Hikers, especially when accompanied by dogs, have been attacked by cows trying to defend their calves or feeling threatened by the dogs - particularly if they have been chased or attacked previously.
The obvious way of staying safe is not to walk your dog in fields containing cattle. And definitely do not let your dog off the lead in, or next to, fields containing any livestock - unless you can keep him under control at all times. In addition, it's best to walk close to the field perimeter so that you can escape through or over/under the fence quickly should you need to.
If you really have no alternative but to walk over land with cattle on it, the advice is:
Do not count on your corgi as a former cattle dog to keep the cows at bay. Far from all today's corgis still have the instinct and many are actually afraid of cattle.
Encounters with livestock guardian dogs
Livestock guardian dogs are not pets but trained working dogs for the protection of livestock against predators such as wolves, bears and lynx in alpine regions. In order to avoid any conflicts hikers and bikers should know how to behave when encountering guarded livestock.