Role in the defence of the realm under Alfonso VII
The first tenencia Fernán received from the king was the Limia in 1131. He soon received Trastámara (ruled 1132–45), which was long to be associated with the patrimonies of the Traba. In 1137 he was given the rule of Trasancos and in 1140 that of Monterroso, which he held as late as 1153. In 1140 Fernán signed Alfonso VII's charter ordering that he and his queen be buried in the Cathedral of Santiago de Compostela. Fernán signed as "count Don Fernando of Traba" (comes dominus Fernandus de Traua), the only time he is ever referred to in contemporary a document with the toponym "de Traba" by which he is now universally known.
In June 1137 Fernán probably participated in the recapture of Túy, although the Historia compostellana alleges that the Galician magnates responsible for the defence of the frontier with Portugal were too slow in answering the royal summons and had to be bribed by Diego Gelmírez to join the royal army. Fernán appears to have been the only Galician to follow the king to the Navarrese frontier later that year. He was with the royal army at Logroño on 3 October, though by 20 October Rodrigo Vélaz had also joined the army on the Ebro.
Fernán defended with difficulty the valley of the Minho against the onslaughts of Afonso Henriques, as recorded by the Chronica Adefonsi imperatoris:
Prior to [1140], the Portuguese monarch had come to Galicia several times, but always he had been driven back by Fernando Pérez and Rodrigo Vélaz and other Galician leaders. Often he was forced to return to Portugal dishonored.
In 1139 or 1140, at Cerneja (Cernesa) in Galicia, he and Rodrigo Vélaz were defeated by Teresa's son Afonso Henriques, who by that time had proclaimed himself king of Portugal. The Battle of Cerneja is recorded in the Chronica Adefonsi:
Once more Alfonso, King of Portugal, gathered his army and went to Limia. When this news reached Galicia, Fernando Pérez and Rodrigo Vélaz and other of the Emperor's Galician nobles were summoned immediately. They marched out with their troops against the Portuguese King and met him at Cernesa. After the battle lines were drawn up, they began to fight. Because of their sins the Counts fled and were defeated.
The record of Fernán's rule in Deza consists of an original royal charter of July 1144. In 1146 he held the tenencias Monforte de Lemos and Sarria. Between 1144 and 1155 Fernán was frequently at court, and he participated in almost all of Alfonso VII's major campaigns of the Reconquista, commanding the Galician contingents on numerous occasions against the Almohads. The major exception was the conquest of Calatrava in January 1147. The chronicles do record his valour in the conquest of Córdoba in 1146, and in the conquest of Almería in 1147. At Almería he led the Galician contingent, and his presence can be traced with Alfonso's army on 19 August during its departure from Baeza and again on 25 November during its triumphant return. The Poema de Almería describes Fernán's role:
The valiant (strenuus) Count Fernando Pérez follows this armed troop [of Galicians] administering the Galician laws with royal care. His position had been strengthened by his tutoring of the Emperor's son. If one were to see him, one would judge him already a king. He is famed for his royal nobility, and because he bears a count's lineage.