In reply to dave frost:
Trains generally go as far as the edge of the National Park, Abergavenny, Merthyr, Llandovery etc. You can get buses from these places to Brecon and from Brecon you can get buses to most of the more popular bits. Most buses are Stagecoach and trains will be Arriva