The rules for taking pets on board a train, differ for each Train Operating Company (TOC), so it's best to check before booking your trip.
Irish Rail (Iarnród Éireann)
Avanti West Coast
Transport for Wales
Check here for tips to travelling with your pet onboard with Irish Ferries.