You should be aware that there are two types of electrical connection you can make when wiring an RJ45 plug to an Ethernet cable. The types that you make will depend on which wiring standard you use – T568A or T568B.
These determine the order in which the eight individual wires in Ethernet cables link to an RJ45 connector pinout. T568A is generally seen as the superior configuration as it offers wider backwards compatibility than other wiring schemes. However, T568B is more common, particularly in slightly older cables and equipment.
The two standards each have their own colour code, with the key difference being that the orange and green pairs are swapped around. You will need to make sure that you are using the correct wiring standard for the type of connection you are trying to make.
For the pin assignment according to T568A, arrange the wires as follows: