A method for configuring a relay mode for a first User Equipment, UE, the method performed by the first UE comprising: receiving first configuration information from a core network device, wherein the first configuration information comprises a mapping relationship between relay modes and Relay Service Codes, RSCs, configured by the core network device, the core network device configures, for the first UE, a relay UE and a second UE, the same mapping relationship between the relay modes and the RSCs, the first configuration information further comprises at least one relay mode configured for the first UE by the core network device, and the first UE, the relay UE and the second UE are devices having a Proximity Service, Prose, capability; wherein the method further comprises: receiving first information broadcasted by the relay UE, wherein the first information indicates at least one second relay mode, the first information comprises at least one Relay Service Code, RSC, corresponding to the at least one second relay mode, and the at least one second relay mode comprises a relay mode common to at least one relay mode corresponding to the relay UE and at least one relay mode corresponding to the second UE; determining (S1306) a first relay mode based on the at least one second relay mode and at least one relay mode configured for the first UE; and performing (S1310) a communication with the second UE by means of the relay UE based on the first relay mode. receiving first configuration information from a core network device, wherein the first configuration information comprises a mapping relationship between relay modes and Relay Service Codes, RSCs, configured by the core network device, the core network device configures, for the first UE, a relay UE and a second UE, the same mapping relationship between the relay modes and the RSCs, the first configuration information further comprises at least one relay mode configured for the first UE by the core network device, and the first UE, the relay UE and the second UE are devices having a Proximity Service, Prose, capability; wherein the method further comprises: receiving first information broadcasted by the relay UE, wherein the first information indicates at least one second relay mode, the first information comprises at least one Relay Service Code, RSC, corresponding to the at least one second relay mode, and the at least one second relay mode comprises a relay mode common to at least one relay mode corresponding to the relay UE and at least one relay mode corresponding to the second UE; determining (S1306) a first relay mode based on the at least one second relay mode and at least one relay mode configured for the first UE; and performing (S1310) a communication with the second UE by means of the relay UE based on the first relay mode. receiving first information broadcasted by the relay UE, wherein the first information indicates at least one second relay mode, the first information comprises at least one Relay Service Code, RSC, corresponding to the at least one second relay mode, and the at least one second relay mode comprises a relay mode common to at least one relay mode corresponding to the relay UE and at least one relay mode corresponding to the second UE; determining (S1306) a first relay mode based on the at least one second relay mode and at least one relay mode configured for the first UE; and performing (S1310) a communication with the second UE by means of the relay UE based on the first relay mode. <EOS>