This article presents the evaluation of the performance of the distance relay (ANSI function 21) when integrating Distributed Energy Resources (DERs) in a Local Distribution System (LDS). The aim is to understand the impacts of and the necessary modifications required in the operation of distance relays, considering different levels of DER aggregation, and identifying any threshold levels before issues arise. To achieve this, first, a comprehensive review was carried out to analyze the impacts generated in the protection systems. Second, by using the DigSilent Power Factory software, the implementation of the distance relay using a IEEE 13 Node Test Feeder was validated. The aggregation of the three fundamental types of DG, synchronous machines, solar panels, and wind turbines, was evaluated. The threshold at which distributed generation power injection begins to compromise distance protection performance was identified. This study compares the outcomes of using mho and quadrilateral protection schemes.